multi_shared2.cpp 703 B

12345678910111213141516171819202122
  1. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  2. // multi_shared2.cpp: library simply using extended_type_info_typeid
  3. // (C) Copyright 2018 Alexander Grund
  4. // Use, modification and distribution is subject to the Boost Software
  5. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/archive/text_oarchive.hpp>
  8. #include <iostream>
  9. struct X2{
  10. template<class Archive>
  11. void serialize(Archive &, const unsigned int){}
  12. };
  13. BOOST_CLASS_IMPLEMENTATION(X2, boost::serialization::object_class_info)
  14. BOOST_SYMBOL_EXPORT bool g(){
  15. boost::archive::text_oarchive(std::cout) & X2();
  16. return true;
  17. }