Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75370 - trunk/boost/test/tools
From: gennadiy.rozental_at_[hidden]
Date: 2011-11-07 04:00:25


Author: rogeeff
Date: 2011-11-07 04:00:24 EST (Mon, 07 Nov 2011)
New Revision: 75370
URL: http://svn.boost.org/trac/boost/changeset/75370

Log:
added missing forward
Text files modified:
   trunk/boost/test/tools/assertion.hpp | 15 ++++++++-------
   1 files changed, 8 insertions(+), 7 deletions(-)

Modified: trunk/boost/test/tools/assertion.hpp
==============================================================================
--- trunk/boost/test/tools/assertion.hpp (original)
+++ trunk/boost/test/tools/assertion.hpp 2011-11-07 04:00:24 EST (Mon, 07 Nov 2011)
@@ -45,11 +45,11 @@
 
 namespace op {
 
-enum id {
+enum id {
     // precedence 4: ->*, .*
- MEMP,
+ MEMP,
     // precedence 5: *, /, %
- MUL, DIV, MOD,
+ MUL, DIV, MOD,
     // precedence 6: +, -
     ADD, SUB,
     // precedence 7: << , >>
@@ -73,7 +73,7 @@
 
     // precedence 16: = and OP= operators
     SET, IADD, ISUB, IMUL, IDIV, IMOD,
- ILSH, IRSH,
+ ILSH, IRSH,
     IAND, IXOR, IOR
     // precedence 17: throw operator
     // not supported
@@ -275,10 +275,11 @@
     // Constructor
 #ifndef BOOST_NO_RVALUE_REFERENCES
     explicit value_expr( T&& val )
+ : m_value( std::forward<T>(val) )
 #else
     explicit value_expr( T const& val )
-#endif
     : m_value( val )
+#endif
     {}
 
     // Specific expresson interface
@@ -317,7 +318,7 @@
         predicate_result res( value() );
         if( !res )
             format_message( res.message(), value() );
-
+
         return res;
     }
 
@@ -360,7 +361,7 @@
         predicate_result res( value() );
         if( !res )
             report( res.message().stream() );
-
+
         return res;
     }
 


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