Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/archive/basic_xml_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_XML_OARCHIVE_HPP | 1 #ifndef BOOST_ARCHIVE_BASIC_XML_OARCHIVE_HPP |
2 #define BOOST_ARCHIVE_BASIC_XML_OARCHIVE_HPP | 2 #define BOOST_ARCHIVE_BASIC_XML_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_xml_oarchive.hpp | 10 // basic_xml_oarchive.hpp |
15 // http://www.boost.org/LICENSE_1_0.txt) | 15 // http://www.boost.org/LICENSE_1_0.txt) |
16 | 16 |
17 // See http://www.boost.org for updates, documentation, and revision history. | 17 // See http://www.boost.org for updates, documentation, and revision history. |
18 | 18 |
19 #include <boost/config.hpp> | 19 #include <boost/config.hpp> |
20 #include <boost/mpl/assert.hpp> | |
21 #include <boost/serialization/pfto.hpp> | |
22 #include <boost/detail/workaround.hpp> | |
20 | 23 |
21 #include <boost/archive/detail/common_oarchive.hpp> | 24 #include <boost/archive/detail/common_oarchive.hpp> |
22 | 25 |
23 #include <boost/serialization/nvp.hpp> | 26 #include <boost/serialization/nvp.hpp> |
24 #include <boost/serialization/tracking.hpp> | 27 #include <boost/serialization/tracking.hpp> |
25 #include <boost/serialization/string.hpp> | 28 #include <boost/serialization/string.hpp> |
26 | 29 |
27 #include <boost/mpl/assert.hpp> | |
28 | 30 |
29 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header | 31 #include <boost/archive/detail/abi_prefix.hpp> // must be the last header |
30 | 32 |
31 #ifdef BOOST_MSVC | 33 #ifdef BOOST_MSVC |
32 # pragma warning(push) | 34 # pragma warning(push) |
34 #endif | 36 #endif |
35 | 37 |
36 namespace boost { | 38 namespace boost { |
37 namespace archive { | 39 namespace archive { |
38 | 40 |
41 namespace detail { | |
42 template<class Archive> class interface_oarchive; | |
43 } // namespace detail | |
44 | |
39 ////////////////////////////////////////////////////////////////////// | 45 ////////////////////////////////////////////////////////////////////// |
40 // class basic_xml_oarchive - write serialized objects to a xml output stream | 46 // class basic_xml_oarchive - write serialized objects to a xml output stream |
41 template<class Archive> | 47 template<class Archive> |
42 class basic_xml_oarchive : | 48 class basic_xml_oarchive : |
43 public detail::common_oarchive<Archive> | 49 public detail::common_oarchive<Archive> |
44 { | 50 { |
51 #ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS | |
52 public: | |
53 #else | |
45 protected: | 54 protected: |
46 #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) | 55 #endif |
47 public: | 56 #if BOOST_WORKAROUND(BOOST_MSVC, < 1500) |
48 #elif defined(BOOST_MSVC) | |
49 // for some inexplicable reason insertion of "class" generates compile erro | 57 // for some inexplicable reason insertion of "class" generates compile erro |
50 // on msvc 7.1 | 58 // on msvc 7.1 |
51 friend detail::interface_oarchive<Archive>; | 59 friend detail::interface_oarchive<Archive>; |
52 friend class save_access; | |
53 #else | 60 #else |
54 friend class detail::interface_oarchive<Archive>; | 61 friend class detail::interface_oarchive<Archive>; |
62 #endif | |
55 friend class save_access; | 63 friend class save_access; |
56 #endif | |
57 // special stuff for xml output | 64 // special stuff for xml output |
58 unsigned int depth; | 65 unsigned int depth; |
59 bool indent_next; | 66 bool indent_next; |
60 bool pending_preamble; | 67 bool pending_preamble; |
61 BOOST_ARCHIVE_OR_WARCHIVE_DECL(void) | 68 BOOST_ARCHIVE_OR_WARCHIVE_DECL(void) |