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