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
13struct X1{
14 template<class Archive>
15 void serialize(Archive &, const unsigned int){}
16};
17
18BOOST_CLASS_IMPLEMENTATION(X1, boost::serialization::object_class_info)
19
20BOOST_SYMBOL_EXPORT bool f(){
21 boost::archive::text_oarchive(std::cout) & X1();
22 return true;
23}
24

source code of boost/libs/serialization/test/multi_shared1.cpp