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 | #include <boost/serialization/access.hpp> |
10 | #include <boost/serialization/base_object.hpp> |
11 | #include <boost/serialization/export.hpp> |
12 | #include <boost/serialization/level.hpp> |
13 | #include <boost/serialization/level_enum.hpp> |
14 | #include <boost/serialization/nvp.hpp> |
15 | #include <boost/serialization/split_free.hpp> |
16 | #include <boost/serialization/split_member.hpp> |
17 | #include <boost/serialization/tracking.hpp> |
18 | #include <boost/serialization/tracking_enum.hpp> |
19 | #include <boost/serialization/traits.hpp> |
20 | #include <boost/serialization/type_info_implementation.hpp> |
21 | #include <boost/serialization/singleton.hpp> |
22 | |
23 | struct foo |
24 | { |
25 | int x; |
26 | private: |
27 | friend class boost::serialization::access; |
28 | |
29 | template<class Archive> |
30 | void serialize(Archive & ar, const unsigned int version) |
31 | { |
32 | // In compilers implementing 2-phase lookup, the call to |
33 | // make_nvp is resolved even if foo::serialize() is never |
34 | // instantiated. |
35 | ar & boost::serialization::make_nvp(n: "x",v&: x); |
36 | } |
37 | }; |
38 | |
39 | int |
40 | main(int /*argc*/, char * /*argv*/[]){ |
41 | return 0; |
42 | } |
43 |