• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>
serializeX115   void serialize(Archive &, const unsigned int){}
16 };
17 
BOOST_CLASS_IMPLEMENTATION(X1,boost::serialization::object_class_info)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 }
24