Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/archive/basic_text_oarchive.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
1 #ifndef BOOST_ARCHIVE_BASIC_TEXT_OARCHIVE_HPP | 1 #ifndef BOOST_ARCHIVE_BASIC_TEXT_OARCHIVE_HPP |
2 #define BOOST_ARCHIVE_BASIC_TEXT_OARCHIVE_HPP | 2 #define BOOST_ARCHIVE_BASIC_TEXT_OARCHIVE_HPP |
3 | 3 |
4 // MS compatible compilers support #pragma once | 4 // MS compatible compilers support #pragma once |
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020) | 5 #if defined(_MSC_VER) |
6 # pragma once | 6 # pragma once |
7 #endif | 7 #endif |
8 | 8 |
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 | 9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
10 // basic_text_oarchive.hpp | 10 // basic_text_oarchive.hpp |
22 // note the fact that on libraries without wide characters, ostream is | 22 // note the fact that on libraries without wide characters, ostream is |
23 // is not a specialization of basic_ostream which in fact is not defined | 23 // is not a specialization of basic_ostream which in fact is not defined |
24 // in such cases. So we can't use basic_ostream<OStream::char_type> but rather | 24 // in such cases. So we can't use basic_ostream<OStream::char_type> but rather |
25 // use two template parameters | 25 // use two template parameters |
26 | 26 |
27 #include <boost/assert.hpp> | |
28 #include <boost/config.hpp> | 27 #include <boost/config.hpp> |
29 #include <boost/serialization/pfto.hpp> | 28 #include <boost/serialization/pfto.hpp> |
30 #include <boost/detail/workaround.hpp> | 29 #include <boost/detail/workaround.hpp> |
31 | |
32 #include <boost/archive/detail/common_oarchive.hpp> | 30 #include <boost/archive/detail/common_oarchive.hpp> |
33 #include <boost/serialization/string.hpp> | 31 #include <boost/serialization/string.hpp> |
34 | 32 |
35 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header | 33 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header |
36 | 34 |
40 #endif | 38 #endif |
41 | 39 |
42 namespace boost { | 40 namespace boost { |
43 namespace archive { | 41 namespace archive { |
44 | 42 |
43 namespace detail { | |
44 template<class Archive> class interface_oarchive; | |
45 } // namespace detail | |
46 | |
45 ///////////////////////////////////////////////////////////////////////// | 47 ///////////////////////////////////////////////////////////////////////// |
46 // class basic_text_oarchive | 48 // class basic_text_oarchive |
47 template<class Archive> | 49 template<class Archive> |
48 class basic_text_oarchive : | 50 class basic_text_oarchive : |
49 public detail::common_oarchive<Archive> | 51 public detail::common_oarchive<Archive> |
50 { | 52 { |
53 #ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS | |
54 public: | |
55 #else | |
51 protected: | 56 protected: |
52 #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \ | 57 #if BOOST_WORKAROUND(BOOST_MSVC, < 1500) |
53 || BOOST_WORKAROUND(__BORLANDC__,BOOST_TESTED_AT(0x560)) | 58 // for some inexplicable reason insertion of "class" generates compile erro |
54 public: | 59 // on msvc 7.1 |
55 #elif defined(BOOST_MSVC) | 60 friend detail::interface_oarchive<Archive>; |
56 // for some inexplicable reason insertion of "class" generates compile erro | 61 #else |
57 // on msvc 7.1 | 62 friend class detail::interface_oarchive<Archive>; |
58 friend detail::interface_oarchive<Archive>; | 63 #endif |
59 #else | |
60 friend class detail::interface_oarchive<Archive>; | |
61 #endif | 64 #endif |
65 | |
62 enum { | 66 enum { |
63 none, | 67 none, |
64 eol, | 68 eol, |
65 space | 69 space |
66 } delimiter; | 70 } delimiter; |