From 50ba2d419a9fe5281e1b179fed4a79424a42e07a Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 25 Jun 2001 11:31:14 +0000 Subject: [PATCH] Tweeked gcc workaround (gcc 3 still has same problem as gcc 2.9x), added tentative Metrowerks and Intel compiler workarounds. [SVN r10422] --- call_traits_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/call_traits_test.cpp b/call_traits_test.cpp index 03f5a3e..1da8e2e 100644 --- a/call_traits_test.cpp +++ b/call_traits_test.cpp @@ -193,14 +193,14 @@ int main(int argc, char *argv[ ]) int i = 2; c2(i); int* pi = &i; -#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES) +#if (defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES)) && !defined(__ICL) call_traits_checker c3; c3(pi); call_traits_checker c4; c4(i); call_traits_checker c5; c5(i); -#if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) +#if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(__MWERKS__) int a[2] = {1,2}; call_traits_checker c6; c6(a); @@ -238,7 +238,7 @@ int main(int argc, char *argv[ ]) type_test(int&, boost::call_traits::reference) type_test(const int&, boost::call_traits::const_reference) type_test(int&, boost::call_traits::param_type) -#if !(defined(__GNUC__) && (__GNUC__ < 3)) +#if !(defined(__GNUC__) && (__GNUC__ < 4)) type_test(int&, boost::call_traits::value_type) type_test(int&, boost::call_traits::reference) type_test(const int&, boost::call_traits::const_reference)