Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77749 - in trunk/libs/local_function: example test
From: lorcaminiti_at_[hidden]
Date: 2012-04-03 16:36:03


Author: lcaminiti
Date: 2012-04-03 16:36:02 EDT (Tue, 03 Apr 2012)
New Revision: 77749
URL: http://svn.boost.org/trac/boost/changeset/77749

Log:
Fixed a couple of typos in LocalFunction tests and examples.
Text files modified:
   trunk/libs/local_function/example/gcc_lambda.cpp | 2 +-
   trunk/libs/local_function/test/goto_error.cpp | 2 +-
   trunk/libs/local_function/test/goto_error_seq.cpp | 2 +-
   trunk/libs/local_function/test/operator_error.cpp | 2 +-
   4 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/local_function/example/gcc_lambda.cpp
==============================================================================
--- trunk/libs/local_function/example/gcc_lambda.cpp (original)
+++ trunk/libs/local_function/example/gcc_lambda.cpp 2012-04-03 16:36:02 EDT (Tue, 03 Apr 2012)
@@ -7,7 +7,7 @@
 
 #include <boost/config.hpp>
 #ifndef __GNUC__
-# error "GCC compiler required (uses non-standard GCC statement expressions)"
+# error "GCC required (using non-standard GCC statement expressions)"
 #else
 
 #include "gcc_lambda.hpp"

Modified: trunk/libs/local_function/test/goto_error.cpp
==============================================================================
--- trunk/libs/local_function/test/goto_error.cpp (original)
+++ trunk/libs/local_function/test/goto_error.cpp 2012-04-03 16:36:02 EDT (Tue, 03 Apr 2012)
@@ -22,7 +22,7 @@
     } BOOST_LOCAL_FUNCTION_NAME(validate)
 
     return validate(x + y);
-faliure:
+failure:
     return -1;
 }
 //]

Modified: trunk/libs/local_function/test/goto_error_seq.cpp
==============================================================================
--- trunk/libs/local_function/test/goto_error_seq.cpp (original)
+++ trunk/libs/local_function/test/goto_error_seq.cpp 2012-04-03 16:36:02 EDT (Tue, 03 Apr 2012)
@@ -16,7 +16,7 @@
     } BOOST_LOCAL_FUNCTION_NAME(validate)
 
     return validate(x + y);
-faliure:
+failure:
     return -1;
 }
 

Modified: trunk/libs/local_function/test/operator_error.cpp
==============================================================================
--- trunk/libs/local_function/test/operator_error.cpp (original)
+++ trunk/libs/local_function/test/operator_error.cpp 2012-04-03 16:36:02 EDT (Tue, 03 Apr 2012)
@@ -19,7 +19,7 @@
     int y;
 };
 
-BOOST_AUTO_TEST_CASE(test_operator_error) {
+int main(void) {
     bool BOOST_LOCAL_FUNCTION(const point& p, const point& q) {
         return p.x == q.x && p.y == q.y;
     } BOOST_LOCAL_FUNCTION_NAME(operator==) // Error: Cannot use `operator...`.


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