Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61842 - trunk/libs/serialization/example
From: ramey_at_[hidden]
Date: 2010-05-07 13:31:19


Author: ramey
Date: 2010-05-07 13:31:17 EDT (Fri, 07 May 2010)
New Revision: 61842
URL: http://svn.boost.org/trac/boost/changeset/61842

Log:
Fixed problem with portable_binary archives
Text files modified:
   trunk/libs/serialization/example/demo_portable_archive.cpp | 2 ++
   trunk/libs/serialization/example/portable_binary_iarchive.cpp | 6 +++++-
   trunk/libs/serialization/example/portable_binary_oarchive.cpp | 5 +++++
   3 files changed, 12 insertions(+), 1 deletions(-)

Modified: trunk/libs/serialization/example/demo_portable_archive.cpp
==============================================================================
--- trunk/libs/serialization/example/demo_portable_archive.cpp (original)
+++ trunk/libs/serialization/example/demo_portable_archive.cpp 2010-05-07 13:31:17 EDT (Fri, 07 May 2010)
@@ -27,6 +27,7 @@
 {
     friend class boost::serialization::access;
     char c;
+ A *pa;
     int i;
     int i2; // special tricky case to check sign extension
     unsigned int ui;
@@ -49,6 +50,7 @@
     }
     A() :
         c(0xFF & std::rand()),
+ pa(0),
         i(std::rand()),
         i2(0x80),
         ui(std::rand()),

Modified: trunk/libs/serialization/example/portable_binary_iarchive.cpp
==============================================================================
--- trunk/libs/serialization/example/portable_binary_iarchive.cpp (original)
+++ trunk/libs/serialization/example/portable_binary_iarchive.cpp 2010-05-07 13:31:17 EDT (Fri, 07 May 2010)
@@ -111,12 +111,16 @@
     m_flags = x << CHAR_BIT;
 }
 
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_binary_iprimitive.ipp>
 
-
 namespace boost {
 namespace archive {
 
+namespace detail {
+ template class archive_serializer_map<portable_binary_iarchive>;
+}
+
 template class basic_binary_iprimitive<
     portable_binary_iarchive,
     std::istream::char_type,

Modified: trunk/libs/serialization/example/portable_binary_oarchive.cpp
==============================================================================
--- trunk/libs/serialization/example/portable_binary_oarchive.cpp (original)
+++ trunk/libs/serialization/example/portable_binary_oarchive.cpp 2010-05-07 13:31:17 EDT (Fri, 07 May 2010)
@@ -78,11 +78,16 @@
     save(static_cast<unsigned char>(m_flags >> CHAR_BIT));
 }
 
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_binary_oprimitive.ipp>
 
 namespace boost {
 namespace archive {
 
+namespace detail {
+ template class archive_serializer_map<portable_binary_oarchive>;
+}
+
 template class basic_binary_oprimitive<
     portable_binary_oarchive,
     std::ostream::char_type,


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