]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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/version.hpp> | |
b32b8144 | 22 | #include <boost/serialization/singleton.hpp> |
7c673cae FG |
23 | |
24 | struct foo | |
25 | { | |
26 | int x; | |
27 | private: | |
28 | friend class boost::serialization::access; | |
29 | ||
30 | template<class Archive> | |
31 | void serialize(Archive & ar, const unsigned int version) | |
32 | { | |
33 | // In compilers implementing 2-phase lookup, the call to | |
34 | // make_nvp is resolved even if foo::serialize() is never | |
35 | // instantiated. | |
36 | ar & boost::serialization::make_nvp("x",x); | |
37 | } | |
38 | }; | |
39 | ||
40 | int | |
41 | main(int /*argc*/, char * /*argv*/[]){ | |
42 | return 0; | |
43 | } |