comparison DEPENDENCIES/generic/include/boost/archive/binary_oarchive_impl.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_BINARY_OARCHIVE_IMPL_HPP 1 #ifndef BOOST_ARCHIVE_BINARY_OARCHIVE_IMPL_HPP
2 #define BOOST_ARCHIVE_BINARY_OARCHIVE_IMPL_HPP 2 #define BOOST_ARCHIVE_BINARY_OARCHIVE_IMPL_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 // binary_oarchive_impl.hpp 10 // binary_oarchive_impl.hpp
28 #endif 28 #endif
29 29
30 namespace boost { 30 namespace boost {
31 namespace archive { 31 namespace archive {
32 32
33 namespace detail {
34 template<class Archive> class interface_oarchive;
35 } // namespace detail
36
33 template<class Archive, class Elem, class Tr> 37 template<class Archive, class Elem, class Tr>
34 class binary_oarchive_impl : 38 class binary_oarchive_impl :
35 public basic_binary_oprimitive<Archive, Elem, Tr>, 39 public basic_binary_oprimitive<Archive, Elem, Tr>,
36 public basic_binary_oarchive<Archive> 40 public basic_binary_oarchive<Archive>
37 { 41 {
38 #ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS 42 #ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
39 public: 43 public:
40 #else 44 #else
41 friend class detail::interface_oarchive<Archive>;
42 friend class basic_binary_oarchive<Archive>;
43 friend class save_access;
44 protected: 45 protected:
46 #if BOOST_WORKAROUND(BOOST_MSVC, < 1500)
47 // for some inexplicable reason insertion of "class" generates compile erro
48 // on msvc 7.1
49 friend detail::interface_oarchive<Archive>;
50 friend basic_binary_oarchive<Archive>;
51 friend save_access;
52 #else
53 friend class detail::interface_oarchive<Archive>;
54 friend class basic_binary_oarchive<Archive>;
55 friend class save_access;
56 #endif
45 #endif 57 #endif
46 // note: the following should not needed - but one compiler (vc 7.1) 58 // note: the following should not needed - but one compiler (vc 7.1)
47 // fails to compile one test (test_shared_ptr) without it !!! 59 // fails to compile one test (test_shared_ptr) without it !!!
48 // make this protected so it can be called from a derived archive 60 // make this protected so it can be called from a derived archive
49 template<class T> 61 template<class T>