Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78241 - trunk/libs/local_function/test
From: lorcaminiti_at_[hidden]
Date: 2012-04-28 10:56:26


Author: lcaminiti
Date: 2012-04-28 10:56:24 EDT (Sat, 28 Apr 2012)
New Revision: 78241
URL: http://svn.boost.org/trac/boost/changeset/78241

Log:
Worked around VACPP error for const int assignment. Enabled more code to pinpoint a VACAPP internal error.
Text files modified:
   trunk/libs/local_function/test/all_decl_seq.cpp | 4 ++--
   trunk/libs/local_function/test/same_line.cpp | 2 +-
   trunk/libs/local_function/test/same_line_seq.cpp | 2 +-
   3 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/local_function/test/all_decl_seq.cpp
==============================================================================
--- trunk/libs/local_function/test/all_decl_seq.cpp (original)
+++ trunk/libs/local_function/test/all_decl_seq.cpp 2012-04-28 10:56:24 EDT (Sat, 28 Apr 2012)
@@ -119,7 +119,7 @@
                     (bind c) (bind& d) (bind q) ) {
             } BOOST_LOCAL_FUNCTION_NAME(lct)
             lct();
-/*
+
             void BOOST_LOCAL_FUNCTION( (const bind a) (const bind& b)
                     (const bind p) (bind this_) ) {
             } BOOST_LOCAL_FUNCTION_NAME(pt)
@@ -127,7 +127,7 @@
             void BOOST_LOCAL_FUNCTION( (const bind a) (const bind& b)
                     (const bind p) (bind c) (bind this_) (bind& d) (bind q) ) {
             } BOOST_LOCAL_FUNCTION_NAME(lpt)
- lpt();*/
+ lpt();
         }
 
         { // All params, const binds, and plain binds.

Modified: trunk/libs/local_function/test/same_line.cpp
==============================================================================
--- trunk/libs/local_function/test/same_line.cpp (original)
+++ trunk/libs/local_function/test/same_line.cpp 2012-04-28 10:56:24 EDT (Sat, 28 Apr 2012)
@@ -39,7 +39,7 @@
     } BOOST_LOCAL_FUNCTION_NAME_TPL(dec)
 
 template<typename T>
-void f(T const& delta) {
+void f(T& delta) {
     LOCAL_INC_DEC_TPL(delta) // Multiple local functions on same line.
     /** @todo back to BOOST_TEST(dec(inc(123)) == 123)) and doc that on vacpp compiler composition doesn't work */
     BOOST_TEST(inc(123) == 123 + delta);

Modified: trunk/libs/local_function/test/same_line_seq.cpp
==============================================================================
--- trunk/libs/local_function/test/same_line_seq.cpp (original)
+++ trunk/libs/local_function/test/same_line_seq.cpp 2012-04-28 10:56:24 EDT (Sat, 28 Apr 2012)
@@ -33,7 +33,7 @@
     } BOOST_LOCAL_FUNCTION_NAME_TPL(dec)
 
 template<typename T>
-void f(T delta) {
+void f(T& delta) {
     LOCAL_INC_DEC_TPL(delta) // Multiple local functions on same line.
     /** @todo back to BOOST_TEST(dec(inc(123)) == 123)) and doc that on vacpp compiler composition doesn't work */
     BOOST_TEST(inc(123) == 123 + delta);


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