From 15f69eaf1410f15fff7e9dae650e1f32eeb29a0f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 19 Mar 2002 11:33:00 +0000 Subject: [PATCH] Fixed new problem with Borland compile - code clashes with some new type traits workarounds for some reason. [SVN r13226] --- call_traits_test.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/call_traits_test.cpp b/call_traits_test.cpp index fd55986..52f1f40 100644 --- a/call_traits_test.cpp +++ b/call_traits_test.cpp @@ -6,6 +6,8 @@ // warranty, and with no claim as to its suitability for any purpose. // standalone test program for +// 18 Mar 2002: +// Changed some names to prevent conflicts with some new type_traits additions. // 03 Oct 2000: // Enabled extra tests for VC6. @@ -78,7 +80,7 @@ struct contained #endif template -contained::value_type> wrap(const T& t) +contained::value_type> test_wrap_type(const T& t) { typedef typename boost::call_traits::value_type ct; return contained(t); @@ -217,9 +219,9 @@ int main(int argc, char *argv[ ]) #endif #endif - check_wrap(wrap(2), 2); + check_wrap(test_wrap_type(2), 2); #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(__SUNPRO_CC) - check_wrap(wrap(a), a); + check_wrap(test_wrap_type(a), a); check_make_pair(test::make_pair(a, a), a, a); #endif