/usr/include/boost/pending/property_serialize.hpp is in libboost1.46-dev 1.46.1-7ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | // (C) Copyright Jeremy Siek 2006
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PROPERTY_SERIALIZE_HPP
#define BOOST_PROPERTY_SERIALIZE_HPP
#include <boost/pending/property.hpp>
#ifdef BOOST_GRAPH_USE_MPI
#include <boost/mpi/datatype.hpp>
#include <boost/serialization/is_bitwise_serializable.hpp>
#endif // BOOST_GRAPH_USE_MPI
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/nvp.hpp>
namespace boost {
template<class Archive>
inline void serialize(Archive&, no_property&, const unsigned int) { }
template<class Archive, class Tag, class T, class Base>
void
serialize(Archive& ar, property<Tag, T, Base>& prop,
const unsigned int version)
{
ar & serialization::make_nvp( "property_base" , boost::serialization::base_object<Base>(prop) );
ar & serialization::make_nvp( "property_value" , prop.m_value );
}
#ifdef BOOST_GRAPH_USE_MPI
namespace mpi {
template<typename Tag, typename T, typename Base>
struct is_mpi_datatype<property<Tag, T, Base> >
: mpl::and_<is_mpi_datatype<T>,
is_mpi_datatype<Base> > { };
}
namespace serialization {
template<typename Tag, typename T, typename Base>
struct is_bitwise_serializable<property<Tag, T, Base> >
: mpl::and_<is_bitwise_serializable<T>,
is_bitwise_serializable<Base> > { };
template<typename Tag, typename T, typename Base>
struct implementation_level<property<Tag, T, Base> >
: mpl::int_<object_serializable> {} ;
template<typename Tag, typename T, typename Base>
struct tracking_level<property<Tag, T, Base> >
: mpl::int_<track_never> {} ;
}
#endif // BOOST_GRAPH_USE_MPI
} // end namespace boost
#ifdef BOOST_GRAPH_USE_MPI
namespace boost { namespace mpi {
template<>
struct is_mpi_datatype<boost::no_property> : mpl::true_ { };
} } // end namespace boost::mpi
BOOST_IS_BITWISE_SERIALIZABLE(boost::no_property)
BOOST_CLASS_IMPLEMENTATION(boost::no_property,object_serializable)
BOOST_CLASS_TRACKING(boost::no_property,track_never)
#endif // BOOST_GRAPH_USE_MPI
#endif // BOOST_PROPERTY_SERIALIZE_HPP
|