comparison DEPENDENCIES/generic/include/boost/ratio/detail/mpl/abs.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 //////////////////////////////////////////////////////////////////// 1 ////////////////////////////////////////////////////////////////////
2 // 2 //
3 // Copyright Vicente J. Botet Escriba 2010 3 // Copyright Vicente J. Botet Escriba 2010
4 // 4 //
5 // Distributed under the Boost Software License, Version 1.0. 5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at 6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt) 7 // http://www.boost.org/LICENSE_1_0.txt)
8 // 8 //
9 // See http://www.boost.org/libs/mpl for documentation. 9 // See http://www.boost.org/libs/mpl for documentation.
10 // 10 //
11 //////////////////////////////////////////////////////////////////// 11 ////////////////////////////////////////////////////////////////////
13 #define BOOST_MPL_ABS_HPP_INCLUDED 13 #define BOOST_MPL_ABS_HPP_INCLUDED
14 14
15 #include <boost/mpl/integral_c.hpp> 15 #include <boost/mpl/integral_c.hpp>
16 #include <boost/mpl/aux_/na_spec.hpp> 16 #include <boost/mpl/aux_/na_spec.hpp>
17 #include <boost/mpl/aux_/lambda_support.hpp> 17 #include <boost/mpl/aux_/lambda_support.hpp>
18 #include <boost/mpl/aux_/config/eti.hpp>
19 #include <boost/mpl/aux_/config/integral.hpp> 18 #include <boost/mpl/aux_/config/integral.hpp>
20 #include <boost/mpl/aux_/config/static_constant.hpp> 19 #include <boost/mpl/aux_/config/static_constant.hpp>
21 20
22 #if !defined(BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC_2) \ 21 #if !defined(BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC_2) \
23 && !defined(BOOST_MPL_PREPROCESSING_MODE) \ 22 && !defined(BOOST_MPL_PREPROCESSING_MODE) \
23 && !defined(__CUDACC__) \
24 && ( defined(BOOST_MSVC) \ 24 && ( defined(BOOST_MSVC) \
25 || BOOST_WORKAROUND(__EDG_VERSION__, <= 238) \ 25 || BOOST_WORKAROUND(__EDG_VERSION__, <= 238) \
26 ) 26 )
27 27
28 # define BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC_2 28 # define BOOST_MPL_CFG_NO_NESTED_VALUE_ARITHMETIC_2
77 template< typename N > struct apply 77 template< typename N > struct apply
78 : aux::abs_wknd< typename N::value_type, N::value > 78 : aux::abs_wknd< typename N::value_type, N::value >
79 #else 79 #else
80 template< typename N > struct apply 80 template< typename N > struct apply
81 : integral_c< typename N::value_type, ((N::value < 0) ? (-N::value) : N::value ) > 81 : integral_c< typename N::value_type, ((N::value < 0) ? (-N::value) : N::value ) >
82 #endif 82 #endif
83 { 83 {
84 }; 84 };
85 }; 85 };
86 86
87 }} 87 }}