Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-01-04 06:29:17


The following patch is needed for test_tools.hpp, to fix an existing Borland
specific workaround:

1) the workaround is not required for the next compiler version (0x600,
checked).
2) the workaround function test_and_continue_impl needs to be inline to
prevent linker errors when the header is included from more than one
translation unit.

Let me know if you want me to commit.

John.

cvs server: Diffing .
Index: test_tools.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/test/test_tools.hpp,v
retrieving revision 1.35
diff -u -b -r1.35 test_tools.hpp
--- test_tools.hpp 1 Dec 2003 00:41:56 -0000 1.35
+++ test_tools.hpp 4 Jan 2004 11:24:49 -0000
@@ -313,8 +313,8 @@

//__________________________________________________________________________
__/
/

 // Borland bug workaround
-#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570))
-bool
+#if BOOST_WORKAROUND(__BORLANDC__, <= 0x570)
+inline bool
 test_and_continue_impl( void* ptr, wrap_stringstream& message_,
                         c_string_literal file_name_, std::size_t line_num_,
                         bool add_fail_pass_ = true,


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk