2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-30 07:52:10 +00:00

boost/pending/property_serialize.hpp:

- Moved serialization code here

boost/pending/property.hpp:
  - From here

boost/graph/adj_list_serialize.hpp:
  - Include the new property_serialization header


[SVN r32275]
This commit is contained in:
Douglas Gregor
2006-01-10 13:53:48 +00:00
parent e96148194d
commit eddae97983
2 changed files with 2 additions and 22 deletions

View File

@@ -2,7 +2,7 @@
#define ADJ_LIST_SERIALIZE_HPP
#include <boost/graph/adjacency_list.hpp>
#include <boost/pending/property_serialize.hpp>
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>

View File

@@ -8,14 +8,6 @@
#include <boost/pending/ct_if.hpp>
#if ! BOOST_WORKAROUND (__GNUC__, < 3)
// 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>
#endif
namespace boost {
struct no_property {
@@ -24,12 +16,8 @@ namespace boost {
typedef no_property value_type;
enum { num = 0 };
typedef void kind;
#if ! BOOST_WORKAROUND (__GNUC__, < 3)
template<class Archive>
void serialize(Archive & ar, const unsigned int version) { }
#endif
};
template <class Tag, class T, class Base = no_property>
struct property : public Base {
typedef Base next_type;
@@ -44,14 +32,6 @@ namespace boost {
property(const T& v, const Base& b) : Base(b), m_value(v) { }
// copy constructor and assignment operator will be generated by compiler
#if ! BOOST_WORKAROUND (__GNUC__, < 3)
template<class Archive>
void serialize(Archive & ar, const unsigned int version) {
ar & boost::serialization::base_object<Base>(*this);
ar & m_value;
}
#endif
T m_value;
};