From 5ef81b29527ddedc1ff666ce18e94004e6441eee Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 8 May 2001 11:17:05 +0000 Subject: [PATCH] Updated/stricter test program [SVN r10061] --- compressed_pair_test.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/compressed_pair_test.cpp b/compressed_pair_test.cpp index cfabca1..c31a155 100644 --- a/compressed_pair_test.cpp +++ b/compressed_pair_test.cpp @@ -75,7 +75,11 @@ struct compressed_pair_tester template void compressed_pair_tester::test(first_param_type p1, second_param_type p2, first_param_type p3, second_param_type p4) { +#ifndef __GNUC__ + // gcc 2.90 can't cope with function scope using + // declarations, and generates an internal compiler error... using std::swap; +#endif // default construct: boost::compressed_pair cp1; // first param construct: @@ -143,7 +147,11 @@ struct compressed_pair_reference_tester template void compressed_pair_reference_tester::test(first_param_type p1, second_param_type p2, first_param_type p3, second_param_type p4) { +#ifndef __GNUC__ + // gcc 2.90 can't cope with function scope using + // declarations, and generates an internal compiler error... using std::swap; +#endif // both param construct: boost::compressed_pair cp4(p1, p2); BOOST_TEST(cp4.first() == p1); @@ -246,8 +254,7 @@ struct compressed_pair_array1_tester template void compressed_pair_array1_tester::test(first_param_type p1, second_param_type p2, first_param_type p3, second_param_type p4) { - using std::swap; - // default construct: + // default construct: boost::compressed_pair cp1; // second param construct: boost::compressed_pair cp3(p2); @@ -391,3 +398,4 @@ unsigned int expected_failures = 0; +