Ticket #1305: parameter_libs071007.diff
File parameter_libs071007.diff, 1.5 KB (added by , 15 years ago) |
---|
-
test/preprocessor.cpp
453 453 , name = S("foo") 454 454 ); 455 455 456 #if ndef BOOST_NO_SFINAE456 #if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591)) 457 457 assert(sfinae("foo") == 1); 458 458 assert(sfinae(1) == 0); 459 459 -
test/sfinae.cpp
9 9 #include <string> 10 10 #include <boost/type_traits/is_convertible.hpp> 11 11 12 #if ndef BOOST_NO_SFINAE12 #if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591)) 13 13 # include <boost/utility/enable_if.hpp> 14 14 # include <boost/type_traits/is_same.hpp> 15 15 #endif … … 70 70 f_impl(args(a0, a1)); 71 71 } 72 72 73 #if ndef BOOST_NO_SFINAE73 #if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591)) 74 74 // On compilers that actually support SFINAE, add another overload 75 75 // that is an equally good match and can only be in the overload set 76 76 // when the others are not. This tests that the SFINAE is actually … … 96 96 f("foo", 3.f); 97 97 f(value = 3.f, name = "foo"); 98 98 99 #if ndef BOOST_NO_SFINAE99 #if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591)) 100 100 BOOST_TEST(f(3, 4) == 0); 101 101 #endif 102 102 return boost::report_errors();