multi_shared1.cpp 758 B

1234567891011121314151617181920212223
  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. // (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. #include <boost/archive/text_oarchive.hpp>
  9. #include <iostream>
  10. struct X1{
  11. template<class Archive>
  12. void serialize(Archive &, const unsigned int){}
  13. };
  14. BOOST_CLASS_IMPLEMENTATION(X1, boost::serialization::object_class_info)
  15. BOOST_SYMBOL_EXPORT bool f(){
  16. boost::archive::text_oarchive(std::cout) & X1();
  17. return true;
  18. }