Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81247 - in trunk/boost/test: . tools utils
From: gennadiy.rozental_at_[hidden]
Date: 2012-11-08 02:45:47


Author: rogeeff
Date: 2012-11-08 02:45:45 EST (Thu, 08 Nov 2012)
New Revision: 81247
URL: http://svn.boost.org/trac/boost/changeset/81247

Log:
older compilers support
Text files modified:
   trunk/boost/test/test_tools.hpp | 2 +-
   trunk/boost/test/tools/assertion.hpp | 10 +++++-----
   trunk/boost/test/utils/is_forward_iterable.hpp | 8 ++++----
   3 files changed, 10 insertions(+), 10 deletions(-)

Modified: trunk/boost/test/test_tools.hpp
==============================================================================
--- trunk/boost/test/test_tools.hpp (original)
+++ trunk/boost/test/test_tools.hpp 2012-11-08 02:45:45 EST (Thu, 08 Nov 2012)
@@ -101,7 +101,7 @@
 
 //____________________________________________________________________________//
 
-#if BOOST_NO_CXX11_AUTO_DECLARATIONS
+#ifdef BOOST_NO_CXX11_AUTO_DECLARATIONS
 #define BOOST_TEST_BUILD_ASSERTION( P ) \
     ::boost::test_tools::assertion::expression const& E = \
     ::boost::test_tools::assertion::seed() ->* P; \

Modified: trunk/boost/test/tools/assertion.hpp
==============================================================================
--- trunk/boost/test/tools/assertion.hpp (original)
+++ trunk/boost/test/tools/assertion.hpp 2012-11-08 02:45:45 EST (Thu, 08 Nov 2012)
@@ -227,7 +227,7 @@
 // ************** assertion::expression ************** //
 // ************************************************************************** //
 
-#if BOOST_NO_CXX11_AUTO_DECLARATIONS
+#ifdef BOOST_NO_CXX11_AUTO_DECLARATIONS
 class expression {
 public:
     // expression interface
@@ -244,7 +244,7 @@
 
 template<typename ExprType,typename ValType>
 class expression_base
-#if BOOST_NO_CXX11_AUTO_DECLARATIONS
+#ifdef BOOST_NO_CXX11_AUTO_DECLARATIONS
 : public expression
 #endif
 {
@@ -353,7 +353,7 @@
 #undef ADD_OP_SUPPORT
 
     // expression interface
-#if BOOST_NO_CXX11_AUTO_DECLARATIONS
+#ifdef BOOST_NO_CXX11_AUTO_DECLARATIONS
     virtual predicate_result evaluate() const
 #else
     predicate_result evaluate() const
@@ -394,7 +394,7 @@
     , m_rhs( std::forward<Rhs>(rhs) )
     {}
 #else
- binary_expr( LExpr const& lhs, Rhs const&& rhs )
+ binary_expr( LExpr const& lhs, Rhs const& rhs )
     : m_lhs( lhs )
     , m_rhs( rhs )
     {}
@@ -410,7 +410,7 @@
         return OP::report( ostr, m_lhs, m_rhs );
     }
 
-#if BOOST_NO_CXX11_AUTO_DECLARATIONS
+#ifdef BOOST_NO_CXX11_AUTO_DECLARATIONS
     virtual predicate_result evaluate() const
 #else
     predicate_result evaluate() const

Modified: trunk/boost/test/utils/is_forward_iterable.hpp
==============================================================================
--- trunk/boost/test/utils/is_forward_iterable.hpp (original)
+++ trunk/boost/test/utils/is_forward_iterable.hpp 2012-11-08 02:45:45 EST (Thu, 08 Nov 2012)
@@ -16,7 +16,7 @@
 #define BOOST_TEST_IS_FRWARD_ITERABLE_HPP_110612GER
 
 // Boost
-
+#include <boost/mpl/bool.hpp>
 // STL
 #include <list>
 #include <vector>
@@ -31,7 +31,7 @@
 // ************************************************************************** //
 
 template<typename T>
-struct is_forward_iterable : std::false_type {};
+struct is_forward_iterable : mpl::false_ {};
 
 template<typename T>
 struct is_forward_iterable<T const> : is_forward_iterable<T> {};
@@ -40,10 +40,10 @@
 struct is_forward_iterable<T&> : is_forward_iterable<T> {};
 
 template<typename T>
-struct is_forward_iterable<std::vector<T>> : std::true_type {};
+struct is_forward_iterable<std::vector<T>> : mpl::true_ {};
 
 template<typename T>
-struct is_forward_iterable<std::list<T>> : std::true_type {};
+struct is_forward_iterable<std::list<T>> : mpl::true_ {};
 
 } // namespace unit_test
 } // namespace boost


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk