diff --git a/boost/test/tools/assertion.hpp b/boost/test/tools/assertion.hpp index 17a9ab9..1919b32 100755 --- a/boost/test/tools/assertion.hpp +++ b/boost/test/tools/assertion.hpp @@ -28,6 +28,7 @@ #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES #include #endif +#include #include @@ -123,7 +124,7 @@ namespace op { //____________________________________________________________________________// #ifndef BOOST_NO_CXX11_DECLTYPE -# define DEDUCE_RESULT_TYPE( oper ) typename boost::remove_reference() oper boost::declval() )>::type +# define DEDUCE_RESULT_TYPE( oper ) typename boost::remove_reference() oper boost::declval() ))>::type #else # define DEDUCE_RESULT_TYPE( oper ) bool #endif @@ -259,7 +260,7 @@ public: { \ return binary_expr >( \ *static_cast(this), \ - std::forward(rhs) ); \ + boost::forward(rhs) ); \ } \ /**/ #else @@ -320,7 +321,7 @@ public: // Constructor #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES explicit value_expr( T&& val ) - : m_value( std::forward(val) ) + : m_value( boost::forward(val) ) #else explicit value_expr( T const& val ) : m_value( val ) @@ -391,7 +392,7 @@ public: #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES binary_expr( LExpr const& lhs, Rhs&& rhs ) : m_lhs( lhs ) - , m_rhs( std::forward(rhs) ) + , m_rhs( boost::forward(rhs) ) {} #else binary_expr( LExpr const& lhs, Rhs const& rhs ) @@ -442,7 +443,7 @@ public: #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES operator->*( T&& v ) const { - return value_expr( std::forward( v ) ); + return value_expr( boost::forward( v ) ); } #else operator->*( T const& v ) const diff --git a/boost/test/utils/is_forward_iterable.hpp b/boost/test/utils/is_forward_iterable.hpp index ca03731..7a92d44 100755 --- a/boost/test/utils/is_forward_iterable.hpp +++ b/boost/test/utils/is_forward_iterable.hpp @@ -27,6 +27,7 @@ // Boost #include +#include #include #include #include @@ -69,7 +70,7 @@ struct is_present : mpl::true_ {}; struct is_forward_iterable_impl { template - static typename std::enable_if< + static typename boost::enable_if_c< is_present::value && is_present::value && is_present().size())>::value && @@ -79,14 +80,14 @@ struct is_forward_iterable_impl { test(int); template - static std::false_type test(...); + static mpl::false_ test(...); }; } // namespace ut_detail template struct is_forward_iterable { - typedef decltype(ut_detail::is_forward_iterable_impl::test::type>(0)) type; + typedef decltype(ut_detail::is_forward_iterable_impl::test::type>(0)) type; enum { value = type::value }; };