polymorphic_binary_oarchive.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef BOOST_ARCHIVE_POLYMORPHIC_BINARY_OARCHIVE_HPP
  2. #define BOOST_ARCHIVE_POLYMORPHIC_BINARY_OARCHIVE_HPP
  3. // MS compatible compilers support #pragma once
  4. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  5. # pragma once
  6. #endif
  7. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  8. // polymorphic_binary_oarchive.hpp
  9. // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
  10. // Use, modification and distribution is subject to the Boost Software
  11. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  12. // http://www.boost.org/LICENSE_1_0.txt)
  13. // See http://www.boost.org for updates, documentation, and revision history.
  14. #include <boost/config.hpp>
  15. #include <boost/archive/binary_oarchive.hpp>
  16. #include <boost/archive/detail/polymorphic_oarchive_route.hpp>
  17. namespace boost {
  18. namespace archive {
  19. typedef detail::polymorphic_oarchive_route<
  20. binary_oarchive_impl<
  21. naked_binary_oarchive,
  22. std::ostream::char_type,
  23. std::ostream::traits_type
  24. >
  25. > polymorphic_binary_oarchive;
  26. } // namespace archive
  27. } // namespace boost
  28. // required by export
  29. BOOST_SERIALIZATION_REGISTER_ARCHIVE(
  30. boost::archive::polymorphic_binary_oarchive
  31. )
  32. #endif // BOOST_ARCHIVE_POLYMORPHIC_BINARY_OARCHIVE_HPP