Update of /cvsroot/boost/boost/boost/pending
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27723/boost/pending
Modified Files:
Tag: RC_1_34_0
property_serialize.hpp
Log Message:
Fix adjacency list and property map serialization
Index: property_serialize.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/pending/property_serialize.hpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -d -r1.1 -r1.1.2.1
--- property_serialize.hpp 10 Jan 2006 13:53:48 -0000 1.1
+++ property_serialize.hpp 5 Feb 2007 22:16:57 -0000 1.1.2.1
@@ -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
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs