From 6cdcd62b2d78eba4f758205006a307e0329488c3 Mon Sep 17 00:00:00 2001 From: Nicola Musatti Date: Thu, 11 Oct 2007 21:04:58 +0000 Subject: [PATCH] Updated to support C++Builder 2007 Update 3 (bcc32 5.9.2) [SVN r39943] --- test/preprocessor.cpp | 2 +- test/sfinae.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/preprocessor.cpp b/test/preprocessor.cpp index 619060f..792a1b7 100755 --- a/test/preprocessor.cpp +++ b/test/preprocessor.cpp @@ -453,7 +453,7 @@ int main() , name = S("foo") ); -#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591)) +#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x592)) assert(sfinae("foo") == 1); assert(sfinae(1) == 0); diff --git a/test/sfinae.cpp b/test/sfinae.cpp index c35462c..f017a21 100755 --- a/test/sfinae.cpp +++ b/test/sfinae.cpp @@ -9,7 +9,7 @@ #include #include -#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591)) +#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x592)) # include # include #endif @@ -70,7 +70,7 @@ namespace test f_impl(args(a0, a1)); } -#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591)) +#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x592)) // On compilers that actually support SFINAE, add another overload // that is an equally good match and can only be in the overload set // when the others are not. This tests that the SFINAE is actually @@ -96,7 +96,7 @@ int main() f("foo", 3.f); f(value = 3.f, name = "foo"); -#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591)) +#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x592)) BOOST_TEST(f(3, 4) == 0); #endif return boost::report_errors();