Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55323 - trunk/libs/serialization/example
From: ramey_at_[hidden]
Date: 2009-07-31 17:02:07


Author: ramey
Date: 2009-07-31 17:02:06 EDT (Fri, 31 Jul 2009)
New Revision: 55323
URL: http://svn.boost.org/trac/boost/changeset/55323

Log:
add register archive
Text files modified:
   trunk/libs/serialization/example/demo_fast_archive.cpp | 10 +++++++---
   1 files changed, 7 insertions(+), 3 deletions(-)

Modified: trunk/libs/serialization/example/demo_fast_archive.cpp
==============================================================================
--- trunk/libs/serialization/example/demo_fast_archive.cpp (original)
+++ trunk/libs/serialization/example/demo_fast_archive.cpp 2009-07-31 17:02:06 EDT (Fri, 31 Jul 2009)
@@ -16,6 +16,7 @@
 #define BOOST_ARCHIVE_SOURCE
 #include <boost/archive/binary_oarchive_impl.hpp>
 #include <boost/archive/binary_iarchive_impl.hpp>
+#include <boost/archive/detail/register_archive.hpp>
 
 // include template definitions for base classes used. Otherwise
 // you'll get link failure with undefined symbols
@@ -24,9 +25,6 @@
 #include <boost/archive/impl/basic_binary_oarchive.ipp>
 #include <boost/archive/impl/basic_binary_iarchive.ipp>
 
-#include <boost/archive/impl/archive_pointer_iserializer.ipp>
-#include <boost/archive/impl/archive_pointer_oserializer.ipp>
-
 using namespace boost::archive;
 
 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
@@ -94,6 +92,9 @@
     {}
 };
 
+// required by export
+BOOST_SERIALIZATION_REGISTER_ARCHIVE(fast_binary_oarchive)
+
 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
 // "Fast" input binary archive. This is a variation of the native binary
 class fast_binary_iarchive :
@@ -157,6 +158,9 @@
     {}
 };
 
+// required by export
+BOOST_SERIALIZATION_REGISTER_ARCHIVE(fast_binary_iarchive)
+
 int main( int argc, char* argv[] )
 {
     const int a[3] = {1, 2, 3};


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