]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/serialization/test/multi_shared1.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / serialization / test / multi_shared1.cpp
1 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
2 // test_multi_shared_lib.cpp: test that implementation of extented_type_info
3 // works when using multiple shared libraries
4
5 // (C) Copyright 2018 Alexander Grund
6 // Use, modification and distribution is subject to the Boost Software
7 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9
10 #include <boost/archive/text_oarchive.hpp>
11 #include <iostream>
12
13 struct X1{
14 template<class Archive>
15 void serialize(Archive &, const unsigned int){}
16 };
17
18 BOOST_CLASS_IMPLEMENTATION(X1, boost::serialization::object_class_info)
19
20 BOOST_SYMBOL_EXPORT bool f(){
21 boost::archive::text_oarchive(std::cout) & X1();
22 return true;
23 }