• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
2 // test_const.cpp
3 
4 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
5 // Use, modification and distribution is subject to the Boost Software
6 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 
9 // compile only
10 
11 #include <boost/archive/text_oarchive.hpp>
12 #include <boost/serialization/nvp.hpp>
13 #include <boost/serialization/tracking.hpp>
14 
15 using namespace boost::archive;
16 
17 struct A {
18     template<class Archive>
serializeA19     void serialize(Archive & ar, unsigned int version) {
20     }
21 };
22 
f1(text_oarchive & oa,A & a)23 void f1(text_oarchive & oa, A & a){
24     oa << BOOST_SERIALIZATION_NVP(a);
25 }
26 
27