Update of /cvsroot/boost/boost/boost/pending
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12490/boost/pending
Modified Files:
property_serialize.hpp
Log Message:
Adjacency list serialization fixes, from David Keller
Index: property_serialize.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/pending/property_serialize.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- property_serialize.hpp 10 Jan 2006 13:53:48 -0000 1.1
+++ property_serialize.hpp 29 Jan 2007 19:54:47 -0000 1.2
@@ -8,11 +8,8 @@
#include <boost/pending/property.hpp>
-// Wierd, I get compilation errors if the following include is
-// removed, but it shouldn't be needed. Some kind of strange
-// include dependency in the serialization library.
-#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/base_object.hpp>
+#include <boost/serialization/nvp.hpp>
namespace boost {
template<class Archive>
@@ -23,8 +20,8 @@
serialize(Archive& ar, property<Tag, T, Base>& prop,
const unsigned int version)
{
- ar & boost::serialization::base_object<Base>(prop);
- ar & prop.m_value;
+ ar & serialization::make_nvp( "property_base" ,
boost::serialization::base_object<Base>(prop) );
+ ar & serialization::make_nvp( "property_value" , prop.m_value );
}
} // end namespace boost
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs