3 ms·
It was in some reference-counting code deep inside the Boost shared pointer implementation. [...] Eventually i realised that i had compiled my application again
by danieldk 9y ago
It was in some reference-counting code deep inside the Boost shared pointer implementation. [...] Eventually i realised that i had compiled my application against one version of Boost, and then dynamically linked to a library i had compiled against a different version.
Interesting. Boost's shared pointer implementation is header-only. Are they using shared_ptr in an API for a non-header Boost library?
https://stackoverflow.com/questions/10334511/why-do-c-libraries-and-frameworks-never-use-smart-pointers/10342299#10342299 https://stackoverflow.com/questions/10334511/why-do-c-librar...
- twic 9y agoThe library i was dynamically linking to was not a Boost library, it was some random other thing, which used Boost and used shared_ptr liberally in its API.