forked from boostorg/type_traits
Update the type_traits intrinsics support to include the gcc-4.3 intrinsics.
Also added some braces to our testing macros to quieten gcc warnings. [SVN r44013]
This commit is contained in:
1 parent
912045e6ac
commit
713516cd7d
7 files changed
+95
-4
No files matched your search
@@ -59,10 +59,16 @@ namespace boost{
|
||||
BOOST_CHECK_MESSAGE(true, "Validating Integral Constant Expression: \"" << BOOST_STRINGIZE(expression) << "\"");\
|
||||
}\
|
||||
if(!::boost::detail::tt_compare((int)expression, expected_value))\
|
||||
{\
|
||||
if(!::boost::detail::tt_compare((int)expression, alternate_value))\
|
||||
{\
|
||||
BOOST_CHECK_MESSAGE(false, "The expression: \"" << BOOST_STRINGIZE(expression) << "\" had an invalid value (found " << ::boost::detail::integral_constant<(int)(expression)>::value() << ", expected " << expected_value << ")" );\
|
||||
}\
|
||||
else\
|
||||
BOOST_WARN_MESSAGE(false, "<note>The expression: \"" << BOOST_STRINGIZE(expression) << "\" did not have the value we wish it to have (found " << ::boost::detail::integral_constant<(int)(expression)>::value() << ", expected " << expected_value << ")</note>" )
|
||||
{\
|
||||
BOOST_WARN_MESSAGE(false, "<note>The expression: \"" << BOOST_STRINGIZE(expression) << "\" did not have the value we wish it to have (found " << ::boost::detail::integral_constant<(int)(expression)>::value() << ", expected " << expected_value << ")</note>" );\
|
||||
}\
|
||||
}
|
||||
|
||||
|
||||
}//detail
|
||||
|
||||
Reference in new issue
Block a user