| 1 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
|---|---|
| 2 | // multi_shared2.cpp: library simply using extended_type_info_typeid |
| 3 | |
| 4 | // (C) Copyright 2018 Alexander Grund |
| 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/archive/text_oarchive.hpp> |
| 10 | #include <iostream> |
| 11 | |
| 12 | struct X2{ |
| 13 | template<class Archive> |
| 14 | void serialize(Archive &, const unsigned int){} |
| 15 | }; |
| 16 | |
| 17 | BOOST_CLASS_IMPLEMENTATION(X2, boost::serialization::object_class_info) |
| 18 | |
| 19 | BOOST_SYMBOL_EXPORT bool g(){ |
| 20 | boost::archive::text_oarchive(std::cout) & X2(); |
| 21 | return true; |
| 22 | } |
| 23 |
