diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/boost/libs/serialization/test/A.hpp | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/libs/serialization/test/A.hpp')
-rw-r--r-- | src/boost/libs/serialization/test/A.hpp | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/src/boost/libs/serialization/test/A.hpp b/src/boost/libs/serialization/test/A.hpp new file mode 100644 index 000000000..67445d7b4 --- /dev/null +++ b/src/boost/libs/serialization/test/A.hpp @@ -0,0 +1,95 @@ +#ifndef BOOST_SERIALIZATION_TEST_A_HPP +#define BOOST_SERIALIZATION_TEST_A_HPP + +// MS compatible compilers support #pragma once +#if defined(_MSC_VER) +# pragma once +#endif + +/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 +// A.hpp simple class test + +// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . +// Use, modification and distribution is subject to the Boost Software +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +// See http://www.boost.org for updates, documentation, and revision history. + +#include <ostream> // for friend output operators +#include <cstddef> // size_t +#include <boost/config.hpp> + +#if defined(BOOST_NO_STDC_NAMESPACE) +namespace std{ + using ::size_t; +} +#endif + +#include <boost/limits.hpp> +#include <boost/cstdint.hpp> + +#include <boost/serialization/access.hpp> +#include <boost/serialization/string.hpp> + +#if defined(A_IMPORT) + #define A_DLL_DECL BOOST_SYMBOL_IMPORT + #pragma message("A imported") +#elif defined(A_EXPORT) + #define A_DLL_DECL BOOST_SYMBOL_EXPORT + #pragma message ("A exported") +#endif + +#ifndef A_DLL_DECL + #define A_DLL_DECL +#endif + +class A_DLL_DECL A { +private: + friend class boost::serialization::access; + template<class Archive> + void serialize( + Archive &ar, + const unsigned int /* file_version */ + ); + bool b; + #ifndef BOOST_NO_INT64_T + boost::int64_t f; + boost::uint64_t g; + #endif + enum h { + i = 0, + j, + k + } l; + std::size_t m; + signed long n; + unsigned long o; + signed short p; + unsigned short q; + #ifndef BOOST_NO_CWCHAR + wchar_t r; + #endif + char c; + signed char s; + unsigned char t; + signed int u; + unsigned int v; + float w; + double x; + std::string y; + #ifndef BOOST_NO_STD_WSTRING + std::wstring z; + #endif +public: + A(); + bool check_equal(const A &rhs) const; + bool operator==(const A &rhs) const; + bool operator!=(const A &rhs) const; + bool operator<(const A &rhs) const; // used by less + // hash function for class A + operator std::size_t () const; + friend std::ostream & operator<<(std::ostream & os, A const & a); +}; + +#endif // BOOST_SERIALIZATION_TEST_A_HPP |