Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58519 - trunk/libs/serialization/test
From: ramey_at_[hidden]
Date: 2009-12-23 13:29:51


Author: ramey
Date: 2009-12-23 13:29:49 EST (Wed, 23 Dec 2009)
New Revision: 58519
URL: http://svn.boost.org/trac/boost/changeset/58519

Log:
Fix plugin test/demo
Text files modified:
   trunk/libs/serialization/test/polymorphic_base.hpp | 2 +-
   trunk/libs/serialization/test/polymorphic_derived2.hpp | 4 ++++
   2 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/libs/serialization/test/polymorphic_base.hpp
==============================================================================
--- trunk/libs/serialization/test/polymorphic_base.hpp (original)
+++ trunk/libs/serialization/test/polymorphic_base.hpp 2009-12-23 13:29:49 EST (Wed, 23 Dec 2009)
@@ -34,7 +34,7 @@
     // note that since this class uses the "no_rtti"
     // extended_type_info implementation, it MUST
     // implement this function
- virtual const char * get_key() const;
+ virtual const char * get_key() const = 0;
     virtual ~polymorphic_base(){};
 };
 

Modified: trunk/libs/serialization/test/polymorphic_derived2.hpp
==============================================================================
--- trunk/libs/serialization/test/polymorphic_derived2.hpp (original)
+++ trunk/libs/serialization/test/polymorphic_derived2.hpp 2009-12-23 13:29:49 EST (Wed, 23 Dec 2009)
@@ -21,6 +21,8 @@
 #include <boost/serialization/base_object.hpp>
 #include <boost/serialization/type_info_implementation.hpp>
 #include <boost/serialization/extended_type_info_typeid.hpp>
+#include <boost/serialization/factory.hpp>
+
 #include <boost/preprocessor/empty.hpp>
 
 #include "polymorphic_base.hpp"
@@ -64,6 +66,8 @@
     boost::serialization::extended_type_info_typeid<polymorphic_derived2>
 )
 
+BOOST_SERIALIZATION_FACTORY_0(polymorphic_derived2)
+
 #undef DLL_DECL
 
 #endif // POLYMORPHIC_DERIVED2_HPP


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk