Update of /cvsroot/boost/boost/libs/serialization/doc
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11984
Modified Files:
serialization.html
Log Message:
added comment re namespaces, fixed void_cast_register prototype
Index: serialization.html
===================================================================
RCS file: /cvsroot/boost/boost/libs/serialization/doc/serialization.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- serialization.html 4 Oct 2006 05:33:39 -0000 1.20
+++ serialization.html 16 Jul 2007 16:35:11 -0000 1.21
@@ -437,6 +437,9 @@
occurence of hard to find errors related to synchronization of
<code style="white-space: normal">save</code> and <code style="white-space:
normal">load</code>
functions.
+<p>
+Also note that <code style="white-space:
normal">BOOST_SERIALIZATION_SPLIT_FREE</code>
+must be used outside of any namespace.
<h2><a name="pointeroperators">Pointers</a></h2>
A pointer to any class instance can be serialized with any of the archive
@@ -787,7 +790,10 @@
// method 1 : invoke base class serialization
boost::serialization::base_object<base>(*this);
// method 2 : explicitly register base/derived relationship
- boost::serialization::void_cast_register<derived, base>();
+ boost::serialization::void_cast_register<derived, base>(
+ static_cast<base *>(NULL),
+ static_cast<derived *>(NULL)
+ )
}
};
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs