]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef BOOST_SERIALIZATION_TEST_BASE_HPP |
2 | #define BOOST_SERIALIZATION_TEST_BASE_HPP | |
3 | ||
4 | // MS compatible compilers support #pragma once | |
5 | #if defined(_MSC_VER) | |
6 | # pragma once | |
7 | #endif | |
8 | ||
9 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 | |
10 | // base.hpp simple class test | |
11 | ||
f67539c2 | 12 | // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . |
7c673cae FG |
13 | // Use, modification and distribution is subject to the Boost Software |
14 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
15 | // http://www.boost.org/LICENSE_1_0.txt) | |
16 | ||
17 | // See http://www.boost.org for updates, documentation, and revision history. | |
18 | ||
19 | #include <boost/config.hpp> | |
20 | ||
21 | #include <boost/serialization/access.hpp> | |
22 | #include <boost/serialization/assume_abstract.hpp> | |
23 | #include <boost/preprocessor/facilities/empty.hpp> | |
24 | ||
25 | #if defined(BASE_IMPORT) | |
26 | #define DLL_DECL BOOST_SYMBOL_IMPORT | |
27 | #elif defined(BASE_EXPORT) | |
28 | #define DLL_DECL BOOST_SYMBOL_EXPORT | |
29 | #else | |
30 | #define DLL_DECL | |
31 | #endif | |
32 | ||
33 | class DLL_DECL base | |
34 | { | |
35 | friend class boost::serialization::access; | |
36 | template<class Archive> | |
37 | void serialize(Archive & /* ar */, const unsigned int /* file_version */); | |
38 | public: | |
39 | virtual ~base(){}; | |
40 | }; | |
41 | ||
42 | BOOST_SERIALIZATION_ASSUME_ABSTRACT(base) | |
43 | ||
44 | #undef DLL_DECL | |
45 | ||
46 | #endif // BOOST_SERIALIZATION_TEST_BASE_HPP |