comparison DEPENDENCIES/generic/include/boost/serialization/static_warning.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
3 3
4 // (C) Copyright Robert Ramey 2003. Jonathan Turkanis 2004. 4 // (C) Copyright Robert Ramey 2003. Jonathan Turkanis 2004.
5 // Use, modification and distribution is subject to the Boost Software 5 // Use, modification and distribution is subject to the Boost Software
6 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 6 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // MS compatible compilers support #pragma once 7 // MS compatible compilers support #pragma once
8 #if defined(_MSC_VER) && (_MSC_VER >= 1020) 8 #if defined(_MSC_VER)
9 # pragma once 9 # pragma once
10 #endif 10 #endif
11 11
12 // http://www.boost.org/LICENSE_1_0.txt) 12 // http://www.boost.org/LICENSE_1_0.txt)
13 13
70 // under recent versions of gcc and intel compilers - Robert Ramey 70 // under recent versions of gcc and intel compilers - Robert Ramey
71 71
72 #include <boost/mpl/bool.hpp> 72 #include <boost/mpl/bool.hpp>
73 #include <boost/mpl/print.hpp> 73 #include <boost/mpl/print.hpp>
74 #include <boost/mpl/eval_if.hpp> 74 #include <boost/mpl/eval_if.hpp>
75 #include <boost/static_assert.hpp>
75 76
76 namespace boost { 77 namespace boost {
77 namespace serialization { 78 namespace serialization {
78 79
79 template<int L> 80 template<int L>
99 } // boost 100 } // boost
100 101
101 #define BOOST_SERIALIZATION_BSW(B, L) \ 102 #define BOOST_SERIALIZATION_BSW(B, L) \
102 typedef boost::serialization::BOOST_SERIALIZATION_SS< \ 103 typedef boost::serialization::BOOST_SERIALIZATION_SS< \
103 sizeof( boost::serialization::static_warning_test< B, L > ) \ 104 sizeof( boost::serialization::static_warning_test< B, L > ) \
104 > BOOST_JOIN(STATIC_WARNING_LINE, L); 105 > BOOST_JOIN(STATIC_WARNING_LINE, L) BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE;
105
106 #define BOOST_STATIC_WARNING(B) BOOST_SERIALIZATION_BSW(B, __LINE__) 106 #define BOOST_STATIC_WARNING(B) BOOST_SERIALIZATION_BSW(B, __LINE__)
107 107
108 #endif // BOOST_SERIALIZATION_STATIC_WARNING_HPP 108 #endif // BOOST_SERIALIZATION_STATIC_WARNING_HPP