Re: [Boost-users] 1.39 serialisation: buggy warning message for shared_ptr
Robert Ramey wrote
The only reason to export a type is if one needs to serialize it through a base class pointer. So, to me the best way to suppress the warning would be to not export the type.
The warning message appears even if you don't export
the type: Here is a simple test case
//==================================
#include
It looks like if we are serialising via a base ptr, and the base class is serialising concrete data member via a shared ptr, it has assumed that the type must be polymorphic. This does not seem right to me ?
Hmmm - I re-vamped this recently. I'd have to check the current behavior. Robert Ramey
Avi Bahra
It looks like if we are serialising via a base ptr, and thebase class is serialising concrete data member via a shared ptr,it has assumed that the type must be polymorphic. This doesnot seem right to me ? Best regards,Ta, Avi
This may be issue #2508 (https://svn.boost.org/trac/boost/ticket/2508) manifesting itself on the HP-UX compiler. Robert put some work into this; have you tried building against the latest release?
participants (3)
-
Avi Bahra
-
Richard Hazlewood
-
Robert Ramey