1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/archive/binary_wiarchive.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,59 @@
1.4 +#ifndef BOOST_ARCHIVE_BINARY_WIARCHIVE_HPP
1.5 +#define BOOST_ARCHIVE_BINARY_WIARCHIVE_HPP
1.6 +
1.7 +// MS compatible compilers support #pragma once
1.8 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
1.9 +# pragma once
1.10 +#endif
1.11 +
1.12 +/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
1.13 +// binary_wiarchive.hpp
1.14 +
1.15 +// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
1.16 +// Use, modification and distribution is subject to the Boost Software
1.17 +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
1.18 +// http://www.boost.org/LICENSE_1_0.txt)
1.19 +
1.20 +// See http://www.boost.org for updates, documentation, and revision history.
1.21 +
1.22 +#include <boost/config.hpp>
1.23 +#ifdef BOOST_NO_STD_WSTREAMBUF
1.24 +#error "wide char i/o not supported on this platform"
1.25 +#else
1.26 +
1.27 +#include <istream> // wistream
1.28 +#include <boost/archive/binary_iarchive_impl.hpp>
1.29 +
1.30 +namespace boost {
1.31 +namespace archive {
1.32 +
1.33 +// do not derive from this class. If you want to extend this functionality
1.34 +// via inhertance, derived from binary_iarchive_impl instead. This will
1.35 +// preserve correct static polymorphism.
1.36 +class binary_wiarchive :
1.37 + public binary_iarchive_impl<
1.38 + binary_wiarchive, std::wistream::char_type, std::wistream::traits_type
1.39 + >
1.40 +{
1.41 +public:
1.42 + binary_wiarchive(std::wistream & is, unsigned int flags = 0) :
1.43 + binary_iarchive_impl<
1.44 + binary_wiarchive, std::wistream::char_type, std::wistream::traits_type
1.45 + >(is, flags)
1.46 + {}
1.47 + binary_wiarchive(std::wstreambuf & bsb, unsigned int flags = 0) :
1.48 + binary_iarchive_impl<
1.49 + binary_wiarchive, std::wistream::char_type, std::wistream::traits_type
1.50 + >(bsb, flags)
1.51 + {}
1.52 +};
1.53 +
1.54 +} // namespace archive
1.55 +} // namespace boost
1.56 +
1.57 +// required by smart_cast for compilers not implementing
1.58 +// partial template specialization
1.59 +BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION(boost::archive::binary_wiarchive)
1.60 +
1.61 +#endif // BOOST_NO_STD_WSTREAMBUF
1.62 +#endif // BOOST_ARCHIVE_BINARY_WIARCHIVE_HPP