Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60276 - trunk/libs/serialization/example
From: ramey_at_[hidden]
Date: 2010-03-06 21:53:46


Author: ramey
Date: 2010-03-06 21:53:46 EST (Sat, 06 Mar 2010)
New Revision: 60276
URL: http://svn.boost.org/trac/boost/changeset/60276

Log:
Add not regarding problems with DLL version of library
Text files modified:
   trunk/libs/serialization/example/demo_portable_archive.cpp | 6 +++++-
   trunk/libs/serialization/example/portable_binary_iarchive.cpp | 1 -
   2 files changed, 5 insertions(+), 2 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-03-06 21:53:46 EST (Sat, 06 Mar 2010)
@@ -8,6 +8,10 @@
 // http://www.boost.org/LICENSE_1_0.txt)
 
 // should pass compilation and execution
+
+// note:: this example can only be built with the static library
+// (at least with MSVC - due to conflicts related to import of library
+// code and instantiation of templates.
 #include <sstream>
 
 #include "portable_binary_oarchive.hpp"
@@ -44,7 +48,7 @@
         ;
     }
     A() :
- c(std::rand()),
+ c(0xFF & std::rand()),
         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-03-06 21:53:46 EST (Sat, 06 Mar 2010)
@@ -10,7 +10,6 @@
 
 #include <istream>
 #include <string>
-//#include <cstring> // memcpy
 
 #include <boost/detail/endian.hpp>
 #include <boost/serialization/throw_exception.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