comparison DEPENDENCIES/generic/include/boost/serialization/nvp.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_SERIALIZATION_NVP_HPP 1 #ifndef BOOST_SERIALIZATION_NVP_HPP
2 #define BOOST_SERIALIZATION_NVP_HPP 2 #define BOOST_SERIALIZATION_NVP_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 // nvp.hpp: interface for serialization system. 10 // nvp.hpp: interface for serialization system.
18 18
19 #include <utility> 19 #include <utility>
20 20
21 #include <boost/config.hpp> 21 #include <boost/config.hpp>
22 #include <boost/detail/workaround.hpp> 22 #include <boost/detail/workaround.hpp>
23 // supress noise
24 #if BOOST_WORKAROUND(BOOST_MSVC, <= 1200)
25 # pragma warning (disable : 4786) // too long name, harmless warning
26 #endif
27 23
28 #include <boost/mpl/integral_c.hpp> 24 #include <boost/mpl/integral_c.hpp>
29 #include <boost/mpl/integral_c_tag.hpp> 25 #include <boost/mpl/integral_c_tag.hpp>
30 26
31 #include <boost/serialization/level.hpp> 27 #include <boost/serialization/level.hpp>
102 // specific serialization traits to all instances of this wrappers. 98 // specific serialization traits to all instances of this wrappers.
103 // we can't strait forward method below as it depends upon 99 // we can't strait forward method below as it depends upon
104 // Partial Template Specialization and doing so would mean that wrappers 100 // Partial Template Specialization and doing so would mean that wrappers
105 // wouldn't be treated the same on different platforms. This would 101 // wouldn't be treated the same on different platforms. This would
106 // break archive portability. Leave this here as reminder not to use it !!! 102 // break archive portability. Leave this here as reminder not to use it !!!
107 #if 0 // #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
108 103
109 template <class T> 104 template <class T>
110 struct implementation_level<nvp< T > > 105 struct implementation_level<nvp< T > >
111 { 106 {
112 typedef mpl::integral_c_tag tag; 107 typedef mpl::integral_c_tag tag;
121 typedef mpl::integral_c_tag tag; 116 typedef mpl::integral_c_tag tag;
122 typedef mpl::int_<track_never> type; 117 typedef mpl::int_<track_never> type;
123 BOOST_STATIC_CONSTANT(int, value = tracking_level::type::value); 118 BOOST_STATIC_CONSTANT(int, value = tracking_level::type::value);
124 }; 119 };
125 120
126 #endif
127 121
128 } // seralization 122 } // seralization
129 } // boost 123 } // boost
130 124
131 #include <boost/preprocessor/stringize.hpp> 125 #include <boost/preprocessor/stringize.hpp>