1/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
2// polymorphic_portable_binary_oarchive.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 <ostream>
12
13#define BOOST_ARCHIVE_SOURCE
14#include "polymorphic_portable_binary_oarchive.hpp"
15
16// explicitly instantiate for this type of text stream
17#include <boost/archive/impl/basic_binary_oarchive.ipp>
18#include <boost/archive/impl/archive_pointer_oserializer.ipp>
19#include <boost/archive/impl/basic_binary_oprimitive.ipp>
20
21namespace boost {
22namespace archive {
23
24// explicitly instantiate for this type of binary stream
25template class binary_oarchive_impl<
26 polymorphic_portable_binary_oarchive,
27 std::ostream::char_type,
28 std::ostream::traits_type
29>;
30template class detail::archive_pointer_oserializer<
31 polymorphic_portable_binary_oarchive
32> ;
33
34} // namespace archive
35} // namespace boost
36

source code of boost/libs/serialization/example/polymorphic_portable_binary_oarchive.cpp