Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78562 - in trunk/libs/local_function: example test
From: lorcaminiti_at_[hidden]
Date: 2012-05-23 15:42:22


Author: lcaminiti
Date: 2012-05-23 15:42:21 EDT (Wed, 23 May 2012)
New Revision: 78562
URL: http://svn.boost.org/trac/boost/changeset/78562

Log:
Missing a closing parenthesis in a const_block example macro.
Removed a new line in return_derivative[_seq].
Text files modified:
   trunk/libs/local_function/example/const_block.hpp | 2 +-
   trunk/libs/local_function/test/return_derivative.cpp | 1 -
   trunk/libs/local_function/test/return_derivative_seq.cpp | 1 -
   3 files changed, 1 insertions(+), 3 deletions(-)

Modified: trunk/libs/local_function/example/const_block.hpp
==============================================================================
--- trunk/libs/local_function/example/const_block.hpp (original)
+++ trunk/libs/local_function/example/const_block.hpp 2012-05-23 15:42:21 EDT (Wed, 23 May 2012)
@@ -26,7 +26,7 @@
 //[const_block_macro
 #define CONST_BLOCK_(variables) \
     void BOOST_LOCAL_FUNCTION( \
- BOOST_PP_IIF(BOOST_PP_LIST_IS_NIL(variables, \
+ BOOST_PP_IIF(BOOST_PP_LIST_IS_NIL(variables), \
             void BOOST_PP_TUPLE_EAT(3) \
         , \
             BOOST_PP_LIST_FOR_EACH_I \

Modified: trunk/libs/local_function/test/return_derivative.cpp
==============================================================================
--- trunk/libs/local_function/test/return_derivative.cpp (original)
+++ trunk/libs/local_function/test/return_derivative.cpp 2012-05-23 15:42:21 EDT (Wed, 23 May 2012)
@@ -32,7 +32,6 @@
     } BOOST_LOCAL_FUNCTION_NAME(add2)
     
     boost::function<int (int)> a2 = add2; // Reference valid where closure used.
-
     boost::function<int (int)> d2 = derivative(a2, 2);
     BOOST_TEST(d2(6) == 1);
     return boost::report_errors();

Modified: trunk/libs/local_function/test/return_derivative_seq.cpp
==============================================================================
--- trunk/libs/local_function/test/return_derivative_seq.cpp (original)
+++ trunk/libs/local_function/test/return_derivative_seq.cpp 2012-05-23 15:42:21 EDT (Wed, 23 May 2012)
@@ -27,7 +27,6 @@
     } BOOST_LOCAL_FUNCTION_NAME(add2)
     
     boost::function<int (int)> a2 = add2;
-
     boost::function<int (int)> d2 = derivative(a2, 2);
     BOOST_TEST(d2(6) == 1);
     return boost::report_errors();


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