comparison DEPENDENCIES/generic/include/boost/spirit/home/support/numeric_traits.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
113 template <typename T, typename Enable = void> 113 template <typename T, typename Enable = void>
114 struct is_nan; 114 struct is_nan;
115 115
116 template <typename T, typename Enable = void> 116 template <typename T, typename Enable = void>
117 struct is_infinite; 117 struct is_infinite;
118 118
119 template <typename T, typename Enable = void> 119 template <typename T, typename Enable = void>
120 struct is_integer_wrapping : mpl::false_ {}; 120 struct check_overflow : mpl::false_ {};
121 121
122 template <typename T> 122 template <typename T>
123 struct is_integer_wrapping_default 123 struct check_overflow<T, typename enable_if_c<integer_traits<T>::is_integral>::type>
124 : mpl::bool_<(static_cast<T>(integer_traits<T>::const_max + 1) == integer_traits<T>::const_min)> {}; 124 : mpl::true_ {};
125
126 template <typename T>
127 struct is_integer_wrapping<T, typename enable_if_c<integer_traits<T>::is_integral>::type>
128 : is_integer_wrapping_default<T> {};
129 }}} 125 }}}
130 126
131 #endif 127 #endif