Why binary compatibility?
问题 I am learning PIMPL idiom. One of its advantage is binary compatibility. I am wondering what the advantages of binary compatibility are. Thanks! 回答1: It avoids the Fragile Binary Interface Problem. It goes like this: Program uses library. User upgrades library. Upgrade changes something in the library's binary interface. Program now doesn't work until it is recompiled because it was built to the old binary interface. One of the advantages of the PIMPL idiom is that it allows you to move