From 8d6c75842e6bb07e42eebcdcd0e26bb81e5d470f Mon Sep 17 00:00:00 2001 From: Gennadiy Rozental Date: Fri, 14 Feb 2003 06:42:18 +0000 Subject: [PATCH] Mingw fix for is_defined Visual age fix for extendeded boolean value [SVN r17394] --- include/boost/test/test_tools.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/boost/test/test_tools.hpp b/include/boost/test/test_tools.hpp index e3c2e479..6edc8113 100644 --- a/include/boost/test/test_tools.hpp +++ b/include/boost/test/test_tools.hpp @@ -112,7 +112,7 @@ boost::wrap_stringstream().ref() << \ "{" #left_begin_ ", " #left_end_ "}" " == {" #right_begin_ ", ...}", __FILE__, __LINE__) -#define BOOST_IS_DEFINED(symb) boost::test_toolbox::detail::is_defined_impl( #symb, BOOST_STRINGIZE(=symb) ) +#define BOOST_IS_DEFINED(symb) boost::test_toolbox::detail::is_defined_impl( #symb, BOOST_STRINGIZE(symb) ) // ***************************** // // helper macros @@ -147,6 +147,10 @@ struct extended_predicate_value { explicit extended_predicate_value( bool predicate_value_ ) : p_predicate_value( predicate_value_ ), p_message( new wrap_stringstream ) {} + extended_predicate_value( extended_predicate_value const& rhs ) + : p_predicate_value( rhs.p_predicate_value.get() ), + p_message( const_cast(rhs).p_message ) {} + bool operator!() const { return !p_predicate_value.get(); } BOOST_READONLY_PROPERTY( bool, 0, () ) p_predicate_value; @@ -459,6 +463,10 @@ private: // Revision History : // // $Log$ +// Revision 1.27 2003/02/14 06:42:18 rogeeff +// Mingw fix for is_defined +// Visual age fix for extendeded boolean value +// // Revision 1.26 2003/02/14 00:56:23 rogeeff // added std to size_t //