From bb8f057d6c49ff73cf5ba30692819959a9fc0aa1 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 12 Dec 2006 09:57:35 +0000 Subject: [PATCH] Fix for msvc-6 in multithreaded test mode. [SVN r36344] --- test/regress/test.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/regress/test.hpp b/test/regress/test.hpp index 442e6680..59660f5e 100644 --- a/test/regress/test.hpp +++ b/test/regress/test.hpp @@ -58,7 +58,12 @@ template void do_test(const charT& c, const tagT& tag) { #ifndef BOOST_NO_STD_LOCALE +#if BOOST_WORKAROUND(BOOST_MSVC, <= 1200) && defined(TEST_THREADS) + // typeid appears to fail in multithreaded environments: + test_info::set_typename(""); +#else test_info::set_typename(typeid(boost::basic_regex >).name()); +#endif boost::basic_regex > e1; static bool done_empty_test = false; if(done_empty_test == false)