
5 Nov
2009
5 Nov
'09
6:10 a.m.
On Wed, Nov 4, 2009 at 8:16 PM, Geoff Hilton
I'm writing a public api for a product which will be bundled as a precompiled dll or binary and one of my goals is binary compatibility
eg. template<typename T> class MyClass { public: T foo(); private: boost::shared_ptr
impl; };
Use boost::intrusive_ptr<> and make sure the intrusive_ptr_add_ref(T) and intrusive_ptr_release(T) are implemented _inside_ your DLL. Tony