Ticket #4304: uint.diff
File uint.diff, 1.3 KB (added by , 12 years ago) |
---|
-
boost/spirit/home/karma/numeric/uint.hpp
12 12 13 13 #include <limits> 14 14 #include <boost/config.hpp> 15 #include <boost/mpl/not.hpp> 16 #include <boost/mpl/bool.hpp> 15 17 16 18 #include <boost/spirit/home/support/common_terminals.hpp> 17 19 #include <boost/spirit/home/support/string_traits.hpp> … … 236 238 Radix == 2 || Radix == 8 || Radix == 10 || Radix == 16, 237 239 not_supported_radix, ()); 238 240 239 BOOST_SPIRIT_ASSERT_MSG(!std::numeric_limits<T>::is_signed, 241 BOOST_SPIRIT_ASSERT_MSG( 242 mpl::not_< mpl::bool_< std::numeric_limits<T>::is_signed > >::value, 240 243 signed_unsigned_mismatch, ()); 241 244 242 245 // int has a Attribute attached … … 299 302 Radix == 2 || Radix == 8 || Radix == 10 || Radix == 16, 300 303 not_supported_radix, ()); 301 304 302 BOOST_SPIRIT_ASSERT_MSG(!std::numeric_limits<T>::is_signed, 305 BOOST_SPIRIT_ASSERT_MSG( 306 mpl::not_< mpl::bool_< std::numeric_limits<T>::is_signed > >::value, 303 307 signed_unsigned_mismatch, ()); 304 308 305 309 // A uint(1U) which additionally has an associated attribute emits