polymorphic_derived1.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  2. // polymorphic_derived1.cpp
  3. // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
  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. // See http://www.boost.org for updates, documentation, and revision history.
  8. #include <boost/serialization/type_info_implementation.hpp>
  9. #include <boost/serialization/export.hpp>
  10. #include "polymorphic_derived1.hpp"
  11. const char * polymorphic_derived1::get_key() const {
  12. return
  13. boost::serialization::type_info_implementation<
  14. polymorphic_derived1
  15. >::type::get_const_instance().get_key();
  16. }
  17. #include <boost/archive/polymorphic_oarchive.hpp>
  18. #include <boost/archive/polymorphic_iarchive.hpp>
  19. template
  20. void polymorphic_derived1::serialize(
  21. boost::archive::polymorphic_oarchive &,
  22. const unsigned int /* file_version */
  23. );
  24. template
  25. void polymorphic_derived1::serialize(
  26. boost::archive::polymorphic_iarchive &,
  27. const unsigned int
  28. );
  29. BOOST_CLASS_EXPORT_IMPLEMENT(polymorphic_derived1)