In hash_fwd_test avoid a Borland bug by putting the test classes in a namespace.

Seems to break on gcc 2.95 though...

Also use HASH_NAMESPACE instead of boost to allow tests to be run in 'std'.


[SVN r32686]
This commit is contained in:
Daniel James
2006-02-07 00:48:58 +00:00
parent 691437839e
commit e09e3f1e06
3 changed files with 45 additions and 40 deletions
+6 -6
View File
@@ -15,16 +15,16 @@ template <class T> void unused(T const&) {}
BOOST_AUTO_TEST_CASE(fwd_test)
{
test_type1<int> x1(3);
test_type1<std::string> y1("Black");
test_type2<int> x2(25, 16);
test_type2<std::string> y2("White", "Green");
test::test_type1<int> x1(3);
test::test_type1<std::string> y1("Black");
test::test_type2<int> x2(25, 16);
test::test_type2<std::string> y2("White", "Green");
std::vector<int> empty;
std::vector<std::string> empty2;
test_type3<int> x3(empty.begin(), empty.end());
test_type3<std::string> y3(empty2.begin(), empty2.end());
test::test_type3<int> x3(empty.begin(), empty.end());
test::test_type3<std::string> y3(empty2.begin(), empty2.end());
// Prevent gcc warnings:
unused(x1); unused(x2); unused(x3);