1 #ifndef BOOST_SERIALIZATION_TEST_A_HPP
2 #define BOOST_SERIALIZATION_TEST_A_HPP
4 // MS compatible compilers support #pragma once
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // A.hpp simple class test
12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
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)
17 // See http://www.boost.org for updates, documentation, and revision history.
19 #include <ostream> // for friend output operators
20 #include <cstddef> // size_t
21 #include <boost/config.hpp>
23 #if defined(BOOST_NO_STDC_NAMESPACE)
29 #include <boost/limits.hpp>
30 #include <boost/cstdint.hpp>
32 #include <boost/serialization/access.hpp>
33 #include <boost/serialization/string.hpp>
35 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
37 #define A_DLL_DECL BOOST_SYMBOL_IMPORT
38 #pragma message("A imported")
39 #elif defined(A_EXPORT)
40 #define A_DLL_DECL BOOST_SYMBOL_EXPORT
41 #pragma message ("A exported")
51 friend class boost::serialization::access;
52 template<class Archive>
55 const unsigned int /* file_version */
58 #ifndef BOOST_NO_INT64_T
72 #ifndef BOOST_NO_CWCHAR
83 #ifndef BOOST_NO_STD_WSTRING
88 bool check_equal(const A &rhs) const;
89 bool operator==(const A &rhs) const;
90 bool operator!=(const A &rhs) const;
91 bool operator<(const A &rhs) const; // used by less
92 // hash function for class A
93 operator std::size_t () const;
94 friend std::ostream & operator<<(std::ostream & os, A const & a);
97 #endif // BOOST_SERIALIZATION_TEST_A_HPP