
1 May
2006
1 May
'06
3:06 a.m.
At 1:36 PM -0700 4/30/06, Robert Ramey wrote:
Denis Kuznetsov wrote:
I have my own archive class (derived from binary_oarchive_impl). And I have a base abstract class and derived classes(non-abstract). I use BOOST_CLASS_EXPORT macro to register my derived classes. But it seems the macro works only for Boost archives, not for user defined archives. Is there any way to register derived classes to get the same functionality that BOOST_CLASS_EXPORT provides?
Look for "boost/archive/detail/known_archive_types.hpp" and edit this file to include your new archive class.
Robert Ramey
Isn't this situation what BOOST_ARCHIVE_CUSTOM_[I,O]ARCHIVE_TYPES is for?