Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76722 - in sandbox/local_function/libs: functional/overloaded_function/test local_function/example local_function/test scope_exit/example scope_exit/test utility/identity_type/test
From: lorcaminiti_at_[hidden]
Date: 2012-01-27 13:58:40


Author: lcaminiti
Date: 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
New Revision: 76722
URL: http://svn.boost.org/trac/boost/changeset/76722

Log:
All tests and examples.
Added:
   sandbox/local_function/libs/functional/overloaded_function/test/identity.cpp
      - copied, changed from r76713, /sandbox/local_function/libs/functional/overloaded_function/test/overloaded_function.cpp
   sandbox/local_function/libs/local_function/example/const_block.cpp
      - copied unchanged from r76713, /sandbox/local_function/libs/local_function/example/const_block_ok.cpp
   sandbox/local_function/libs/local_function/example/const_block.hpp
      - copied unchanged from r76713, /sandbox/local_function/libs/local_function/example/const_block.hpp
   sandbox/local_function/libs/local_function/example/const_block_err.cpp
      - copied, changed from r76713, /sandbox/local_function/libs/local_function/example/const_block.cpp
   sandbox/local_function/libs/local_function/example/noncopyable_lambda_err.cpp
      - copied, changed from r76713, /sandbox/local_function/libs/local_function/example/noncopyable_lambda.cpp
   sandbox/local_function/libs/local_function/example/phoenix_factorial_local.cpp
      - copied, changed from r76713, /sandbox/local_function/libs/local_function/example/phoenix_local_factorial.cpp
   sandbox/local_function/libs/local_function/test/goto.cpp
      - copied, changed from r76713, /sandbox/local_function/libs/local_function/test/goto_ok.cpp
   sandbox/local_function/libs/local_function/test/operator.cpp
      - copied, changed from r76713, /sandbox/local_function/libs/local_function/test/operator_ok.cpp
   sandbox/local_function/libs/utility/identity_type/test/var.cpp
      - copied unchanged from r76713, /sandbox/local_function/libs/utility/identity_type/test/var_ok.cpp
Removed:
   sandbox/local_function/libs/functional/overloaded_function/test/overloaded_function.cpp
   sandbox/local_function/libs/local_function/example/const_block_ok.cpp
   sandbox/local_function/libs/local_function/example/noncopyable_lambda.cpp
   sandbox/local_function/libs/local_function/example/phoenix_local_factorial.cpp
   sandbox/local_function/libs/local_function/test/goto_ok.cpp
   sandbox/local_function/libs/local_function/test/operator_error.cpp
   sandbox/local_function/libs/local_function/test/operator_ok.cpp
   sandbox/local_function/libs/utility/identity_type/test/var_ok.cpp
Text files modified:
   sandbox/local_function/libs/functional/overloaded_function/test/Jamfile.v2 | 8 ++------
   sandbox/local_function/libs/functional/overloaded_function/test/identity.cpp | 16 ++++++++--------
   sandbox/local_function/libs/local_function/example/Jamfile.v2 | 37 ++++++++++++++++++++++---------------
   sandbox/local_function/libs/local_function/example/add_global_functor.cpp | 6 +++---
   sandbox/local_function/libs/local_function/example/add_local_functor.cpp | 6 +++---
   sandbox/local_function/libs/local_function/example/add_phoenix.cpp | 12 +++++++++---
   sandbox/local_function/libs/local_function/example/chrono.py | 2 ++
   sandbox/local_function/libs/local_function/example/const_block_err.cpp | 2 +-
   sandbox/local_function/libs/local_function/example/expensive_copy_local_function.cpp | 2 +-
   sandbox/local_function/libs/local_function/example/gcc_access.cpp | 4 ++--
   sandbox/local_function/libs/local_function/example/gcc_lambda.cpp | 15 ++++++++++++---
   sandbox/local_function/libs/local_function/example/gcc_lambda_cpp11.cpp | 10 +++++-----
   sandbox/local_function/libs/local_function/example/gcc_square.cpp | 4 ++--
   sandbox/local_function/libs/local_function/example/gcc_store.cpp | 4 ++--
   sandbox/local_function/libs/local_function/example/impl_factorial.cpp | 2 +-
   sandbox/local_function/libs/local_function/example/impl_pp_keyword.cpp | 6 +++---
   sandbox/local_function/libs/local_function/example/impl_tparam_tricks.cpp | 6 +++---
   sandbox/local_function/libs/local_function/example/n2529_this.cpp | 4 ++--
   sandbox/local_function/libs/local_function/example/n2550_find_if.cpp | 4 ++--
   sandbox/local_function/libs/local_function/example/noncopyable_lambda_err.cpp | 9 +++++++++
   sandbox/local_function/libs/local_function/example/noncopyable_local_function.cpp | 2 +-
   sandbox/local_function/libs/local_function/example/phoenix_factorial.cpp | 6 +++---
   sandbox/local_function/libs/local_function/example/phoenix_factorial_local.cpp | 8 ++++----
   sandbox/local_function/libs/local_function/example/profile_global_functor.cpp | 3 +--
   sandbox/local_function/libs/local_function/example/profile_local_function_inline.cpp | 2 +-
   sandbox/local_function/libs/local_function/example/scope_exit.cpp | 4 ++--
   sandbox/local_function/libs/local_function/example/scope_exit.hpp | 2 +-
   sandbox/local_function/libs/local_function/test/Jamfile.v2 | 9 +++++----
   sandbox/local_function/libs/local_function/test/add.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_classifiers.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_default.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_except.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_inline.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_lambda.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_params.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_seq.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_template.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_this.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/add_with_default.cpp | 4 ++--
   sandbox/local_function/libs/local_function/test/factorial.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/goto.cpp | 8 ++++----
   sandbox/local_function/libs/local_function/test/goto_err.cpp | 4 ++--
   sandbox/local_function/libs/local_function/test/macro_commas.cpp | 4 ++--
   sandbox/local_function/libs/local_function/test/nesting.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/operator.cpp | 6 +++---
   sandbox/local_function/libs/local_function/test/operator_err.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/overload.cpp | 3 +--
   sandbox/local_function/libs/local_function/test/return_assign.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/seq.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/ten_void.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/transform.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/typeof.cpp | 2 +-
   sandbox/local_function/libs/local_function/test/typeof_template.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/example/Jamfile.v2 | 10 ++++------
   sandbox/local_function/libs/scope_exit/example/scope_guard.cpp | 4 ++--
   sandbox/local_function/libs/scope_exit/example/try_catch.cpp | 4 ++--
   sandbox/local_function/libs/scope_exit/example/try_catch_seq.cpp | 4 ++--
   sandbox/local_function/libs/scope_exit/test/world.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_checkpoint.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_checkpoint_all.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_checkpoint_all_seq.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_checkpoint_seq.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_lambda.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_seq.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_this.cpp | 4 ++--
   sandbox/local_function/libs/scope_exit/test/world_this_seq.cpp | 4 ++--
   sandbox/local_function/libs/scope_exit/test/world_tpl.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_tpl_seq.cpp | 2 +-
   sandbox/local_function/libs/scope_exit/test/world_void.cpp | 2 +-
   sandbox/local_function/libs/utility/identity_type/test/Jamfile.v2 | 2 +-
   70 files changed, 170 insertions(+), 144 deletions(-)

Modified: sandbox/local_function/libs/functional/overloaded_function/test/Jamfile.v2
==============================================================================
--- sandbox/local_function/libs/functional/overloaded_function/test/Jamfile.v2 (original)
+++ sandbox/local_function/libs/functional/overloaded_function/test/Jamfile.v2 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -1,11 +1,7 @@
 
 import testing ;
 
-project : requirements
- <library>/boost//unit_test_framework
-;
+project : requirements <library>/boost//unit_test_framework ;
 
-test-suite world_tests :
- [ run overloaded_function.cpp ]
-;
+run identity.cpp ;
 

Copied: sandbox/local_function/libs/functional/overloaded_function/test/identity.cpp (from r76713, /sandbox/local_function/libs/functional/overloaded_function/test/overloaded_function.cpp)
==============================================================================
--- /sandbox/local_function/libs/functional/overloaded_function/test/overloaded_function.cpp (original)
+++ sandbox/local_function/libs/functional/overloaded_function/test/identity.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -1,11 +1,11 @@
 
 #include <boost/functional/overloaded_function.hpp>
 #include <boost/function.hpp>
-#define BOOST_TEST_MODULE TestOverloadedFunction
+#define BOOST_TEST_MODULE TestIdentity
 #include <boost/test/unit_test.hpp>
 #include <string>
 
-//[test_make_overloaded_function_check
+//[identity_checks
 template<typename F>
 void check(F identity) {
     BOOST_CHECK( identity("abc") == "abc" );
@@ -14,7 +14,7 @@
 }
 //]
 
-//[test_overloaded_function_declarations
+//[identity_decls
 const std::string& identity_s(const std::string& x) { return x; } // As pointer.
 
 int identity_i_impl(int x) { return x; }
@@ -24,15 +24,15 @@
 boost::function<double (double)> identity_d = identity_d_impl; // Functor.
 //]
 
-BOOST_AUTO_TEST_CASE( test_overloaded_function ) {
- //[test_overloaded_function_calls
+BOOST_AUTO_TEST_CASE( test_identity ) {
+ //[identity_calls
     BOOST_CHECK( identity_s("abc") == "abc" );
     BOOST_CHECK( identity_i(123) == 123 );
     BOOST_CHECK( identity_d(1.23) == 1.23 );
     //]
 
     {
- //[test_overloaded_function
+ //[identity
         boost::overloaded_function<
               const std::string& (const std::string&)
             , int (int)
@@ -46,7 +46,7 @@
     }
     
     {
- //[test_make_overloaded_function
+ //[identity_make
         BOOST_AUTO(identity, boost::make_overloaded_function(
                 identity_s, identity_i, identity_d));
 
@@ -56,7 +56,7 @@
         //]
     }
 
- //[test_make_overloaded_function_call
+ //[identity_make_call
     check(boost::make_overloaded_function(identity_s, identity_i, identity_d));
     //]
 }

Deleted: sandbox/local_function/libs/functional/overloaded_function/test/overloaded_function.cpp
==============================================================================
--- sandbox/local_function/libs/functional/overloaded_function/test/overloaded_function.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
+++ (empty file)
@@ -1,63 +0,0 @@
-
-#include <boost/functional/overloaded_function.hpp>
-#include <boost/function.hpp>
-#define BOOST_TEST_MODULE TestOverloadedFunction
-#include <boost/test/unit_test.hpp>
-#include <string>
-
-//[test_make_overloaded_function_check
-template<typename F>
-void check(F identity) {
- BOOST_CHECK( identity("abc") == "abc" );
- BOOST_CHECK( identity(123) == 123 );
- BOOST_CHECK( identity(1.23) == 1.23 );
-}
-//]
-
-//[test_overloaded_function_declarations
-const std::string& identity_s(const std::string& x) { return x; } // As pointer.
-
-int identity_i_impl(int x) { return x; }
-int (&identity_i)(int) = identity_i_impl; // Function reference.
-
-double identity_d_impl(double x) { return x; }
-boost::function<double (double)> identity_d = identity_d_impl; // Functor.
-//]
-
-BOOST_AUTO_TEST_CASE( test_overloaded_function ) {
- //[test_overloaded_function_calls
- BOOST_CHECK( identity_s("abc") == "abc" );
- BOOST_CHECK( identity_i(123) == 123 );
- BOOST_CHECK( identity_d(1.23) == 1.23 );
- //]
-
- {
- //[test_overloaded_function
- boost::overloaded_function<
- const std::string& (const std::string&)
- , int (int)
- , double (double)
- > identity(identity_s, identity_i, identity_d);
-
- BOOST_CHECK( identity("abc") == "abc" );
- BOOST_CHECK( identity(123) == 123 );
- BOOST_CHECK( identity(1.23) == 1.23 );
- //]
- }
-
- {
- //[test_make_overloaded_function
- BOOST_AUTO(identity, boost::make_overloaded_function(
- identity_s, identity_i, identity_d));
-
- BOOST_CHECK( identity("abc") == "abc" );
- BOOST_CHECK( identity(123) == 123 );
- BOOST_CHECK( identity(1.23) == 1.23 );
- //]
- }
-
- //[test_make_overloaded_function_call
- check(boost::make_overloaded_function(identity_s, identity_i, identity_d));
- //]
-}
-

Modified: sandbox/local_function/libs/local_function/example/Jamfile.v2
==============================================================================
--- sandbox/local_function/libs/local_function/example/Jamfile.v2 (original)
+++ sandbox/local_function/libs/local_function/example/Jamfile.v2 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -3,20 +3,19 @@
 
 project : requirements <library>/boost//unit_test_framework ;
 
-# @todo profiling
-# @todo impl_factorial
+run add_global_functor.cpp ;
+run add_local_functor.cpp ;
+#run add_phoenix.cpp ;
 
-compile-fail const_block.cpp ;
-run const_block_ok.cpp ;
-run scope_exit.cpp ;
+run const_block.cpp ;
+compile-fail const_block_err.cpp ;
 
-run gcc_lambda.cpp ;
-run gcc_lambda_cpp11.cpp ;
-
-run boost_phoenix_factorial.cpp ;
-run boost_phoenix_local_factorial.cpp ;
+run expensive_copy_lambda.cpp ;
+run expensive_copy_local_function.cpp ;
 
 run gcc_access.cpp ;
+run gcc_lambda.cpp ;
+run gcc_lambda_cpp11.cpp ;
 run gcc_square.cpp ;
 run gcc_store.cpp ;
 
@@ -27,27 +26,33 @@
 run n2529_this.cpp ;
 run n2550_find_if.cpp ;
 
-exe profile_local_function : profile_local_function.cpp
+compile-fail noncopyable_lambda_err.cpp ;
+run noncopyable_local_function.cpp ;
+
+run phoenix_factorial.cpp ;
+run phoenix_factorial_local.cpp ;
+
+exe profile_global_functor : profile_global_functor.cpp
     : <library>/boost/chrono//boost_chrono
         <library>/boost/system//boost_system
         <link>static
     ;
-exe profile_local_function_inline : profile_local_function_inline.cpp
+exe profile_lambda : profile_lambda.cpp
     : <library>/boost/chrono//boost_chrono
         <library>/boost/system//boost_system
         <link>static
     ;
-exe profile_lambda : profile_lambda.cpp
+exe profile_local_function : profile_local_function.cpp
     : <library>/boost/chrono//boost_chrono
         <library>/boost/system//boost_system
         <link>static
     ;
-exe profile_local_functor : profile_local_functor.cpp
+exe profile_local_function_inline : profile_local_function_inline.cpp
     : <library>/boost/chrono//boost_chrono
         <library>/boost/system//boost_system
         <link>static
     ;
-exe profile_global_functor : profile_global_functor.cpp
+exe profile_local_functor : profile_local_functor.cpp
     : <library>/boost/chrono//boost_chrono
         <library>/boost/system//boost_system
         <link>static
@@ -58,3 +63,5 @@
         <link>static
     ;
 
+run scope_exit.cpp ;
+

Modified: sandbox/local_function/libs/local_function/example/add_global_functor.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/add_global_functor.cpp (original)
+++ sandbox/local_function/libs/local_function/example/add_global_functor.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -4,7 +4,7 @@
 // License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
-#define BOOST_TEST_MODULE AddGlobalFunctor
+#define BOOST_TEST_MODULE TestAddGlobalFunctor
 #include <boost/test/unit_test.hpp>
 #include <algorithm>
 
@@ -18,10 +18,10 @@
     }
 private: // Unfortunately, cannot bind so repeat variable types.
     int& sum; // Access `sum` by reference.
- const int& factor; // Make `factor` constant.
+ const int factor; // Make `factor` constant.
 };
 
-BOOST_AUTO_TEST_CASE( add_global_functor ) {
+BOOST_AUTO_TEST_CASE( test_add_global_functor ) {
     int sum = 0, factor = 10;
 
     global_add add(sum, factor);

Modified: sandbox/local_function/libs/local_function/example/add_local_functor.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/add_local_functor.cpp (original)
+++ sandbox/local_function/libs/local_function/example/add_local_functor.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -4,10 +4,10 @@
 // License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
-#define BOOST_TEST_CASE AddLocalFunctor
+#define BOOST_TEST_MODULE TestAddLocalFunctor
 #include <boost/test/unit_test.hpp>
 
-BOOST_AUTO_TEST_CASE( add_local_functor )
+BOOST_AUTO_TEST_CASE( test_add_local_functor )
 //[add_local_functor
 {
     int sum = 0, factor = 10;
@@ -20,7 +20,7 @@
         }
     private: // Unfortunately, cannot bind so repeat variable types.
         int& sum; // Access `sum` by reference.
- const int& factor; // Make `factor` constant.
+ const int factor; // Make `factor` constant.
     } add(sum, factor);
     
     add(1);

Modified: sandbox/local_function/libs/local_function/example/add_phoenix.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/add_phoenix.cpp (original)
+++ sandbox/local_function/libs/local_function/example/add_phoenix.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,18 +5,24 @@
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
 #include <boost/spirit/include/phoenix.hpp>
-#define BOOST_TEST_MODULE AddPhoenix
+#define BOOST_TEST_MODULE TestAddPhoenix
 #include <boost/test/unit_test.hpp>
 #include <algorithm>
+#include <iostream>
     
-BOOST_AUTO_TEST_CASE( add_phoenix )
+BOOST_AUTO_TEST_CASE( test_add_phoenix )
 //[add_phoenix
 {
+ using boost::phoenix::let;
+ using boost::phoenix::local_names::_f;
+ using boost::phoenix::cref;
+ using boost::phoenix::ref;
+ using boost::phoenix::arg_names::_1;
+
     int sum = 0, factor = 10;
     int nums[] = {1, 2, 3};
 
     // Passed to template, `factor` by constant, and defined in expression.
- using namespace boost::phoenix;
     std::for_each(nums, nums + 3, let(_f = cref(factor))[
         // Unfortunately, body cannot use C++ statement syntax.
         ref(sum) += _f * _1 // Access `sum` by reference.

Modified: sandbox/local_function/libs/local_function/example/chrono.py
==============================================================================
--- sandbox/local_function/libs/local_function/example/chrono.py (original)
+++ sandbox/local_function/libs/local_function/example/chrono.py 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -8,6 +8,8 @@
 import time
 import os
 
+# Usage: python crono.py COMMAND [COMMAND_OPTIONS]
+
 cmd = ""
 for arg in sys.argv[1:]: cmd += str(arg) + " "
 

Copied: sandbox/local_function/libs/local_function/example/const_block_err.cpp (from r76713, /sandbox/local_function/libs/local_function/example/const_block.cpp)
==============================================================================
--- /sandbox/local_function/libs/local_function/example/const_block.cpp (original)
+++ sandbox/local_function/libs/local_function/example/const_block_err.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -3,7 +3,7 @@
 #include <cassert>
 
 int main(void) {
- //[example_const_block
+ //[const_block
     int x = 1, y = 2;
     CONST_BLOCK(x, y) { // Constant block.
         assert(x = y); // Compiler error.

Deleted: sandbox/local_function/libs/local_function/example/const_block_ok.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/const_block_ok.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
+++ (empty file)
@@ -1,12 +0,0 @@
-
-#include "const_block.hpp"
-#include <cassert>
-
-int main(void) {
- int x = 0, y = 0;
- CONST_BLOCK(x, y) {
- assert(x == y);
- } CONST_BLOCK_END
- return 0;
-}
-

Modified: sandbox/local_function/libs/local_function/example/expensive_copy_local_function.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/expensive_copy_local_function.cpp (original)
+++ sandbox/local_function/libs/local_function/example/expensive_copy_local_function.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -4,7 +4,7 @@
 // License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
-#include <boost/local/function.hpp>
+#include <boost/local_function.hpp>
 #include <iostream>
 #include <cassert>
 

Modified: sandbox/local_function/libs/local_function/example/gcc_access.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/gcc_access.cpp (original)
+++ sandbox/local_function/libs/local_function/example/gcc_access.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,10 +5,10 @@
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
 #include <boost/local_function.hpp>
-#define BOOST_TEST_MODULE ExampleGccAccess
+#define BOOST_TEST_MODULE TestGccAccess
 #include <boost/test/unit_test.hpp>
 
-BOOST_AUTO_TEST_CASE( example_gcc_access ) {
+BOOST_AUTO_TEST_CASE( test_gcc_access ) {
     int nums[] = {1, 2, 3};
     int offset = -1;
     int BOOST_LOCAL_FUNCTION(const bind offset, int* array, int index) {

Modified: sandbox/local_function/libs/local_function/example/gcc_lambda.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/gcc_lambda.cpp (original)
+++ sandbox/local_function/libs/local_function/example/gcc_lambda.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -1,11 +1,14 @@
 
+#include <boost/config.hpp>
+#if defined(__GCC__) || !defined(BOOST_NO_LAMBDAS)
+
 #include "gcc_lambda.hpp"
-#define BOOST_TEST_MODULE ExampleGccLambda
+#define BOOST_TEST_MODULE TestGccLambda
 #include <boost/test/unit_test.hpp>
 #include <algorithm>
 
-BOOST_AUTO_TEST_CASE( example_gcc_lambda ) {
- //[example_gcc_lambda
+BOOST_AUTO_TEST_CASE( test_gcc_lambda ) {
+ //[gcc_lambda
     int val = 2;
     int nums[] = {1, 2, 3};
     int* end = nums + 3;
@@ -21,3 +24,9 @@
     BOOST_CHECK( *iter == val );
 }
 
+#else // GCC || !NO_LAMBDAS
+
+int main(void) { return 0; }
+
+#endif // GCC || !NO_LAMBDAS
+

Modified: sandbox/local_function/libs/local_function/example/gcc_lambda_cpp11.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/gcc_lambda_cpp11.cpp (original)
+++ sandbox/local_function/libs/local_function/example/gcc_lambda_cpp11.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -3,12 +3,12 @@
 
 #ifndef BOOST_NO_LAMBDAS
 
-#define BOOST_TEST_MODULE ExampleGccLambdaCpp11
+#define BOOST_TEST_MODULE TestGccLambdaCpp11
 #include <boost/test/unit_test.hpp>
 #include <algorithm>
 
-BOOST_AUTO_TEST_CASE( example_gcc_lambda_cpp11 ) {
- //[example_gcc_lambda_cpp11
+BOOST_AUTO_TEST_CASE( test_gcc_lambda_cpp11 ) {
+ //[gcc_lambda_cpp11
     int val = 2;
     int nums[] = {1, 2, 3};
     int* end = nums + 3;
@@ -24,9 +24,9 @@
     BOOST_CHECK( *iter == val );
 }
 
-#else
+#else // NO_LAMBDAS
 
 int main(void) { return 0; } // Trivial test.
 
-#endif
+#endif // NO_LAMBDAS
 

Modified: sandbox/local_function/libs/local_function/example/gcc_square.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/gcc_square.cpp (original)
+++ sandbox/local_function/libs/local_function/example/gcc_square.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,7 +5,7 @@
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
 #include <boost/local_function.hpp>
-#define BOOST_TEST_MODULE ExampleGccSquare
+#define BOOST_TEST_MODULE TestGccSquare
 #include <boost/test/unit_test.hpp>
 
 double add_square(double a, double b) {
@@ -16,7 +16,7 @@
     return square(a) + square(b);
 }
 
-BOOST_AUTO_TEST_CASE( example_gcc_square ) {
+BOOST_AUTO_TEST_CASE( test_gcc_square ) {
     BOOST_CHECK( add_square(2.0, 4.0) == 20.0 );
 }
 

Modified: sandbox/local_function/libs/local_function/example/gcc_store.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/gcc_store.cpp (original)
+++ sandbox/local_function/libs/local_function/example/gcc_store.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -6,7 +6,7 @@
 
 #include <boost/local_function.hpp>
 #include <boost/function.hpp>
-#define BOOST_TEST_MODULE ExampleGccStore
+#define BOOST_TEST_MODULE TestGccStore
 #include <boost/test/unit_test.hpp>
 
 void intermediate(boost::function<void (int, int)> store_func, int size) {
@@ -21,7 +21,7 @@
     intermediate(store, size);
 }
 
-BOOST_AUTO_TEST_CASE( example_gcc_store ) {
+BOOST_AUTO_TEST_CASE( test_gcc_store ) {
     int nums[] = {1, 2, 3};
     hack(nums, 3);
 

Modified: sandbox/local_function/libs/local_function/example/impl_factorial.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/impl_factorial.cpp (original)
+++ sandbox/local_function/libs/local_function/example/impl_factorial.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -4,7 +4,7 @@
 // License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
-//[example_impl_factorial
+//[impl_factorial
 #include <boost/local/function.hpp>
 #include <iostream>
 #include <sstream>

Modified: sandbox/local_function/libs/local_function/example/impl_pp_keyword.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/impl_pp_keyword.cpp (original)
+++ sandbox/local_function/libs/local_function/example/impl_pp_keyword.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -4,11 +4,11 @@
 // License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
-//[example_impl_pp_keyword
+//[impl_pp_keyword
 #include <boost/local_function/detail/preprocessor/keyword/thisunderscore.hpp>
 #include <boost/local_function/detail/preprocessor/keyword/const.hpp>
 #include <boost/local_function/detail/preprocessor/keyword/bind.hpp>
-#define BOOST_TEST_MODULE ExampleImplPpKeyword
+#define BOOST_TEST_MODULE TestImplPpKeyword
 #include <boost/test/unit_test.hpp>
 
 // Expand to 1 if space-separated tokens end with `this_`, 0 otherwise.
@@ -19,7 +19,7 @@
         tokens \
     )))
 
-BOOST_AUTO_TEST_CASE( example_impl_pp_keyword ) {
+BOOST_AUTO_TEST_CASE( test_impl_pp_keyword ) {
     BOOST_CHECK( HAS_THIS_(const bind this_) == 1 );
     BOOST_CHECK( HAS_THIS_(const bind& x) == 0 );
 }

Modified: sandbox/local_function/libs/local_function/example/impl_tparam_tricks.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/impl_tparam_tricks.cpp (original)
+++ sandbox/local_function/libs/local_function/example/impl_tparam_tricks.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -4,8 +4,8 @@
 // License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
-//[example_impl_tparam_tricks
-#define BOOST_TEST_MODULE ExampleTparamTricks
+//[impl_tparam_tricks
+#define BOOST_TEST_MODULE TestImplTparamTricks
 #include <boost/test/unit_test.hpp>
 #include <vector>
 #include <algorithm>
@@ -33,7 +33,7 @@
     interface* func_;
 };
 
-BOOST_AUTO_TEST_CASE( example_tparam_tricks ) {
+BOOST_AUTO_TEST_CASE( test_impl_tparam_tricks ) {
     int sum = 0, factor = 10;
 
     // Local class for local function.

Modified: sandbox/local_function/libs/local_function/example/n2529_this.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/n2529_this.cpp (original)
+++ sandbox/local_function/libs/local_function/example/n2529_this.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,7 +5,7 @@
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
 #include <boost/local_function.hpp>
-#define BOOST_TEST_MODULE ExampleN2529This
+#define BOOST_TEST_MODULE TestN2529This
 #include <boost/test/unit_test.hpp>
 #include <vector>
 #include <algorithm>
@@ -24,7 +24,7 @@
     }
 };
 
-BOOST_AUTO_TEST_CASE( example_n2529_this ) {
+BOOST_AUTO_TEST_CASE( test_n2529_this ) {
     std::vector<int> n(3);
     n[0] = 1; n[1] = 2; n[2] = 3;
 

Modified: sandbox/local_function/libs/local_function/example/n2550_find_if.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/n2550_find_if.cpp (original)
+++ sandbox/local_function/libs/local_function/example/n2550_find_if.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,7 +5,7 @@
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
 #include <boost/local_function.hpp>
-#define BOOST_TEST_MODULE ExampleN2550FindIf
+#define BOOST_TEST_MODULE TestN2550FindIf
 #include <boost/test/unit_test.hpp>
 #include <vector>
 #include <algorithm>
@@ -15,7 +15,7 @@
     explicit employee(const int& a_salary): salary(a_salary) {}
 };
 
-BOOST_AUTO_TEST_CASE( example_n2550_find_if ) {
+BOOST_AUTO_TEST_CASE( test_n2550_find_if ) {
     std::vector<employee> employees;
     employees.push_back(employee( 85000));
     employees.push_back(employee(100000));

Deleted: sandbox/local_function/libs/local_function/example/noncopyable_lambda.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/noncopyable_lambda.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
+++ (empty file)
@@ -1,27 +0,0 @@
-
-// Copyright (C) 2009-2011 Lorenzo Caminiti
-// Use, modification, and distribution is subject to the Boost Software
-// License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
-// copy at http://www.boost.org/LICENSE_1_0.txt).
-
-#include <boost/noncopyable.hpp>
-#include <cassert>
-
-//[noncopyable_lambda
-struct n: boost::noncopyable {
- int i;
- n(int _i): i(_i) {}
-};
-
-int main(void) {
- n x(-1);
-
- auto f = [x](void) { // Error: x is non-copyable, but if
- assert( x.i == -1 ); // bind `&x` then `x` is not constant.
- };
- f();
-
- return 0;
-}
-//]
-

Copied: sandbox/local_function/libs/local_function/example/noncopyable_lambda_err.cpp (from r76713, /sandbox/local_function/libs/local_function/example/noncopyable_lambda.cpp)
==============================================================================
--- /sandbox/local_function/libs/local_function/example/noncopyable_lambda.cpp (original)
+++ sandbox/local_function/libs/local_function/example/noncopyable_lambda_err.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -4,6 +4,9 @@
 // License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
+#include <boost/config.hpp>
+#ifndef BOOST_NO_LAMBDAS
+
 #include <boost/noncopyable.hpp>
 #include <cassert>
 
@@ -25,3 +28,9 @@
 }
 //]
 
+#else // NO_LAMBDAS
+
+#error "Trivial failure."
+
+#endif // NO_LAMBDAS
+

Modified: sandbox/local_function/libs/local_function/example/noncopyable_local_function.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/noncopyable_local_function.cpp (original)
+++ sandbox/local_function/libs/local_function/example/noncopyable_local_function.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -18,7 +18,7 @@
     n x(-1);
 
     void BOOST_LOCAL_FUNCTION(const bind& x) { // OK: No copy
- assert( x == -1 ); // and constant.
+ assert( x.i == -1 ); // and constant.
     } BOOST_LOCAL_FUNCTION_NAME(f)
     f();
 

Modified: sandbox/local_function/libs/local_function/example/phoenix_factorial.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/phoenix_factorial.cpp (original)
+++ sandbox/local_function/libs/local_function/example/phoenix_factorial.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -1,10 +1,10 @@
 
 #include <boost/phoenix/core.hpp>
 #include <boost/phoenix/function.hpp>
-#define BOOST_TEST_MODULE ExampleBoostPhoenixFactorial
+#define BOOST_TEST_MODULE TestPhoenixFactorial
 #include <boost/test/unit_test.hpp>
 
-//[example_boost_phoenix_factorial
+//[phoenix_factorial
 struct factorial_impl { // Phoenix function from global functor.
     template<typename Sig>
     struct result;
@@ -21,7 +21,7 @@
     }
 };
 
-BOOST_AUTO_TEST_CASE( example_boost_phoenix_factorial ) {
+BOOST_AUTO_TEST_CASE( test_phoenix_factorial ) {
     using boost::phoenix::arg_names::arg1;
     
     boost::phoenix::function<factorial_impl> factorial;

Copied: sandbox/local_function/libs/local_function/example/phoenix_factorial_local.cpp (from r76713, /sandbox/local_function/libs/local_function/example/phoenix_local_factorial.cpp)
==============================================================================
--- /sandbox/local_function/libs/local_function/example/phoenix_local_factorial.cpp (original)
+++ sandbox/local_function/libs/local_function/example/phoenix_factorial_local.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -3,14 +3,14 @@
 #include <boost/function.hpp>
 #include <boost/phoenix/core.hpp>
 #include <boost/phoenix/function.hpp>
-#define BOOST_TEST_MODULE ExampleBoostPhoenixFactorialLocal
+#define BOOST_TEST_MODULE TestPhoenixFactorialLocal
 #include <boost/test/unit_test.hpp>
 
-//[example_boost_phoenix_local_factorial
-BOOST_AUTO_TEST_CASE( example_boost_phoenix_factorial_local ) {
+//[phoenix_factorial_local
+BOOST_AUTO_TEST_CASE( test_phoenix_factorial_local ) {
     using boost::phoenix::arg_names::arg1;
     
- int BOOST_LOCAL_FUNCTION(int n) { // Monomorphic.
+ int BOOST_LOCAL_FUNCTION(int n) { // Unfortunately, monomorphic.
         return (n <= 0) ? 1 : n * factorial_impl(n - 1);
     } BOOST_LOCAL_FUNCTION_NAME(recursive factorial_impl)
 

Deleted: sandbox/local_function/libs/local_function/example/phoenix_local_factorial.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/phoenix_local_factorial.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
+++ (empty file)
@@ -1,25 +0,0 @@
-
-#include <boost/local_function.hpp>
-#include <boost/function.hpp>
-#include <boost/phoenix/core.hpp>
-#include <boost/phoenix/function.hpp>
-#define BOOST_TEST_MODULE ExampleBoostPhoenixFactorialLocal
-#include <boost/test/unit_test.hpp>
-
-//[example_boost_phoenix_local_factorial
-BOOST_AUTO_TEST_CASE( example_boost_phoenix_factorial_local ) {
- using boost::phoenix::arg_names::arg1;
-
- int BOOST_LOCAL_FUNCTION(int n) { // Monomorphic.
- return (n <= 0) ? 1 : n * factorial_impl(n - 1);
- } BOOST_LOCAL_FUNCTION_NAME(recursive factorial_impl)
-
- boost::phoenix::function< boost::function<int (int)> >
- factorial(factorial_impl); // Phoenix function from local function.
-
- int i = 4;
- BOOST_CHECK( factorial(i)() == 24 ); // Call.
- BOOST_CHECK( factorial(arg1)(i) == 24 ); // Lazy call.
-}
-//]
-

Modified: sandbox/local_function/libs/local_function/example/profile_global_functor.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/profile_global_functor.cpp (original)
+++ sandbox/local_function/libs/local_function/example/profile_global_functor.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -11,8 +11,7 @@
 #include "profile_helpers.hpp"
 
 struct global_add {
- global_add(double& _sum, const int& _factor):
- sum(_sum), factor(_factor) {}
+ global_add(double& _sum, const int& _factor): sum(_sum), factor(_factor) {}
     inline void operator()(const double& num) {
         sum += factor * num;
     }

Modified: sandbox/local_function/libs/local_function/example/profile_local_function_inline.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/profile_local_function_inline.cpp (original)
+++ sandbox/local_function/libs/local_function/example/profile_local_function_inline.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -23,7 +23,7 @@
     void BOOST_LOCAL_FUNCTION(
             const double& num, bind& sum, const bind& factor) {
         sum += factor * num;
- } BOOST_LOCAL_FUNCTION_NAME(inline add) // inlined
+ } BOOST_LOCAL_FUNCTION_NAME(inline add) // Inlined.
     boost::chrono::duration<double> decl_sec =
             boost::chrono::system_clock::now() - start;
 

Modified: sandbox/local_function/libs/local_function/example/scope_exit.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/scope_exit.cpp (original)
+++ sandbox/local_function/libs/local_function/example/scope_exit.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -57,7 +57,7 @@
     persons_.push_back(a_person);
 
     // This block must be no-throw.
- //[example_scope_exit
+ //[scope_exit
     person& p = persons_.back();
     person::evolution_t checkpoint = p.evolution_;
 
@@ -86,7 +86,7 @@
     checkpoint = ++p.evolution_;
 }
 
-BOOST_AUTO_TEST_CASE( test_world_checkpoint ) {
+BOOST_AUTO_TEST_CASE( test_scope_exit ) {
     person adam, eva;
     std::ostringstream oss;
     oss << adam;

Modified: sandbox/local_function/libs/local_function/example/scope_exit.hpp
==============================================================================
--- sandbox/local_function/libs/local_function/example/scope_exit.hpp (original)
+++ sandbox/local_function/libs/local_function/example/scope_exit.hpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -8,7 +8,7 @@
 #include <boost/preprocessor/cat.hpp>
 #include <boost/config.hpp>
 
-//[example_scope_exit_object
+//[scope_exit_class
 struct scope_exit {
     scope_exit(boost::function<void (void)> f): f_(f) {}
     ~scope_exit(void) { f_(); }

Modified: sandbox/local_function/libs/local_function/test/Jamfile.v2
==============================================================================
--- sandbox/local_function/libs/local_function/test/Jamfile.v2 (original)
+++ sandbox/local_function/libs/local_function/test/Jamfile.v2 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -16,17 +16,17 @@
 run add_with_default.cpp ;
 
 run factorial.cpp ;
+run goto.cpp ;
+compile-fail goto_err.cpp ;
 run macro_commas.cpp ;
 run nesting.cpp ;
+run operator.cpp ;
+compile-fail operator_err.cpp ;
 run overload.cpp ;
 run ten_void.cpp ;
 run transform.cpp ;
 run typeof.cpp ;
 run typeof_template.cpp ;
-run operator_ok.cpp ;
-compile-fail operator_err.cpp ;
-run goto_ok.cpp ;
-compile-fail goto_err.cpp ;
 
 run return_assign.cpp ;
 run return_derivative.cpp ;
@@ -34,5 +34,6 @@
 run return_setget.cpp ;
 run return_this.cpp ;
 
+run add_seq.cpp ;
 run seq.cpp ;
 

Modified: sandbox/local_function/libs/local_function/test/add.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,7 +5,7 @@
 #include <algorithm>
 
 BOOST_AUTO_TEST_CASE( test_add )
-//[test_add
+//[add
 { // Some local scope.
     int sum = 0, factor = 10; // Variables in scope to bind.
     

Modified: sandbox/local_function/libs/local_function/test/add_classifiers.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_classifiers.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_classifiers.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -13,7 +13,7 @@
 #include <boost/test/unit_test.hpp>
 
 BOOST_AUTO_TEST_CASE( test_add_classifiers ) {
- //[test_add_classifiers
+ //[add_classifiers
     int BOOST_LOCAL_FUNCTION(auto int x, register int y) { // Classifers.
         return x + y;
     } BOOST_LOCAL_FUNCTION_NAME(add)

Modified: sandbox/local_function/libs/local_function/test/add_default.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_default.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_default.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -9,7 +9,7 @@
 #include <boost/test/unit_test.hpp>
 
 BOOST_AUTO_TEST_CASE( test_add_default ) {
- //[test_add_default
+ //[add_default
     int BOOST_LOCAL_FUNCTION(int x, int y, default 2) { // Default.
         return x + y;
     } BOOST_LOCAL_FUNCTION_NAME(add)

Modified: sandbox/local_function/libs/local_function/test/add_except.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_except.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_except.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -9,7 +9,7 @@
 #include <boost/test/unit_test.hpp>
 
 BOOST_AUTO_TEST_CASE( test_except ) {
- //[test_add_except
+ //[add_except
     double sum = 0.0;
     int factor = 10;
 

Modified: sandbox/local_function/libs/local_function/test/add_inline.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_inline.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_inline.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -12,7 +12,7 @@
 #include <algorithm>
 
 BOOST_AUTO_TEST_CASE( test_add_inline ) {
- //[test_add_inline
+ //[add_inline
     int sum = 0, factor = 10;
 
     void BOOST_LOCAL_FUNCTION(const bind factor, bind& sum, int num) {

Modified: sandbox/local_function/libs/local_function/test/add_lambda.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_lambda.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_lambda.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -8,7 +8,7 @@
 #include <algorithm>
 
 BOOST_AUTO_TEST_CASE( test_add_lambda )
-//[test_add_lambda
+//[add_lambda
 { // Some local scope.
     int sum = 0, factor = 10; // Variables in scope to bind.
     

Modified: sandbox/local_function/libs/local_function/test/add_params.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_params.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_params.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -9,7 +9,7 @@
 #include <boost/test/unit_test.hpp>
 
 BOOST_AUTO_TEST_CASE( test_add_params ) {
- //[test_add_params
+ //[add_params
     int BOOST_LOCAL_FUNCTION(int x, int y) { // Local function.
         return x + y;
     } BOOST_LOCAL_FUNCTION_NAME(add)

Modified: sandbox/local_function/libs/local_function/test/add_seq.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_seq.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_seq.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,7 +5,7 @@
 #include <algorithm>
 
 BOOST_AUTO_TEST_CASE( test_add_seq ) {
- //[test_add_seq
+ //[add_seq
     int sum = 0, factor = 10; // Variables in scope to bind.
     
     void BOOST_LOCAL_FUNCTION( (const bind factor) (bind& sum) (int num) ) {

Modified: sandbox/local_function/libs/local_function/test/add_template.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_template.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_template.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -9,7 +9,7 @@
 #include <boost/test/unit_test.hpp>
 #include <algorithm>
 
-//[test_add_template
+//[add_template
 template<typename T>
 T total(const T& x, const T& y, const T& z) {
     T sum = T(), factor = 10;

Modified: sandbox/local_function/libs/local_function/test/add_this.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_this.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_this.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -10,7 +10,7 @@
 #include <vector>
 #include <algorithm>
 
-//[test_add_this
+//[add_this
 struct adder {
     adder(): sum_(0) {}
 

Modified: sandbox/local_function/libs/local_function/test/add_with_default.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/add_with_default.cpp (original)
+++ sandbox/local_function/libs/local_function/test/add_with_default.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -8,12 +8,12 @@
 #define BOOST_TEST_MODULE TestAddWithDefault
 #include <boost/test/unit_test.hpp>
 
-//[test_add_with_default_macro
+//[add_with_default_macro
 #define WITH_DEFAULT , default
 //]
 
 BOOST_AUTO_TEST_CASE( test_add_with_default ) {
- //[test_add_with_default
+ //[add_with_default
     int BOOST_LOCAL_FUNCTION(int x, int y WITH_DEFAULT 2) { // Default.
         return x + y;
     } BOOST_LOCAL_FUNCTION_NAME(add)

Modified: sandbox/local_function/libs/local_function/test/factorial.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/factorial.cpp (original)
+++ sandbox/local_function/libs/local_function/test/factorial.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -10,7 +10,7 @@
 #include <algorithm>
 #include <vector>
 
-//[test_factorial
+//[factorial
 struct calculator {
     std::vector<int> results;
 

Copied: sandbox/local_function/libs/local_function/test/goto.cpp (from r76713, /sandbox/local_function/libs/local_function/test/goto_ok.cpp)
==============================================================================
--- /sandbox/local_function/libs/local_function/test/goto_ok.cpp (original)
+++ sandbox/local_function/libs/local_function/test/goto.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -1,11 +1,11 @@
 
 #include <boost/local_function.hpp>
-#define BOOST_TEST_MODULE TestGotoOk
+#define BOOST_TEST_MODULE TestGoto
 #include <boost/test/unit_test.hpp>
 
-//[test_goto_ok
+//[goto
 int error(int x, int y) {
- bool BOOST_LOCAL_FUNCTION(int x) {
+ int BOOST_LOCAL_FUNCTION(int x) {
         if(x > 0) goto success; // OK: Can jump within local function.
         return -1;
     success:
@@ -16,7 +16,7 @@
 }
 //]
 
-BOOST_AUTO_TEST_CASE( test_goto_ok ) {
+BOOST_AUTO_TEST_CASE( test_goto ) {
     error(1, 2);
 }
 

Modified: sandbox/local_function/libs/local_function/test/goto_err.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/goto_err.cpp (original)
+++ sandbox/local_function/libs/local_function/test/goto_err.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -3,9 +3,9 @@
 #define BOOST_TEST_MODULE TestGotoErr
 #include <boost/test/unit_test.hpp>
 
-//[test_goto_err
+//[goto_err
 int error(int x, int y) {
- bool BOOST_LOCAL_FUNCTION(int x) {
+ int BOOST_LOCAL_FUNCTION(int x) {
         if(x <= 0) goto failure; // Error: Cannot jump to enclosing scope.
         else goto success; // OK: Can jump within local function.
 

Deleted: sandbox/local_function/libs/local_function/test/goto_ok.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/goto_ok.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
+++ (empty file)
@@ -1,22 +0,0 @@
-
-#include <boost/local_function.hpp>
-#define BOOST_TEST_MODULE TestGotoOk
-#include <boost/test/unit_test.hpp>
-
-//[test_goto_ok
-int error(int x, int y) {
- bool BOOST_LOCAL_FUNCTION(int x) {
- if(x > 0) goto success; // OK: Can jump within local function.
- return -1;
- success:
- return 0;
- } BOOST_LOCAL_FUNCTION_NAME(validate)
-
- return validate(x + y);
-}
-//]
-
-BOOST_AUTO_TEST_CASE( test_goto_ok ) {
- error(1, 2);
-}
-

Modified: sandbox/local_function/libs/local_function/test/macro_commas.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/macro_commas.cpp (original)
+++ sandbox/local_function/libs/local_function/test/macro_commas.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -11,13 +11,13 @@
 
 template<typename V, typename K>
 struct key_sizeof {
- BOOST_STATIC_CONSTANT(size_t, value = sizeof(K));
+ BOOST_STATIC_CONSTANT(int, value = sizeof(K));
 };
 
 typedef int sign_t;
 
 BOOST_AUTO_TEST_CASE( text_macro_commas ) {
- //[test_macro_commas
+ //[macro_commas
     void BOOST_LOCAL_FUNCTION(
         BOOST_IDENTITY_TYPE((const std::map<std::string, size_t>&)) m,
         BOOST_IDENTITY_TYPE((::sign_t)) sign,

Modified: sandbox/local_function/libs/local_function/test/nesting.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/nesting.cpp (original)
+++ sandbox/local_function/libs/local_function/test/nesting.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -9,7 +9,7 @@
 #include <boost/test/unit_test.hpp>
 
 BOOST_AUTO_TEST_CASE( test_nesting ) {
- //[test_nesting
+ //[nesting
     int x = 0;
 
     void BOOST_LOCAL_FUNCTION(bind& x) {

Copied: sandbox/local_function/libs/local_function/test/operator.cpp (from r76713, /sandbox/local_function/libs/local_function/test/operator_ok.cpp)
==============================================================================
--- /sandbox/local_function/libs/local_function/test/operator_ok.cpp (original)
+++ sandbox/local_function/libs/local_function/test/operator.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -1,15 +1,15 @@
 
 #include <boost/local_function.hpp>
-#define BOOST_TEST_MODULE TestOperatorOk
+#define BOOST_TEST_MODULE TestOperator
 #include <boost/test/unit_test.hpp>
 
-//[test_operator_ok
+//[operator
 struct point {
     int x;
     int y;
 };
 
-BOOST_AUTO_TEST_CASE( test_operator_ok ) {
+BOOST_AUTO_TEST_CASE( test_operator ) {
     bool BOOST_LOCAL_FUNCTION(const point& p, const point& q) {
         return p.x == q.x && p.y == q.y;
     } BOOST_LOCAL_FUNCTION_NAME(equal) // OK: not using `operator...`.

Modified: sandbox/local_function/libs/local_function/test/operator_err.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/operator_err.cpp (original)
+++ sandbox/local_function/libs/local_function/test/operator_err.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -3,7 +3,7 @@
 #define BOOST_TEST_MODULE TestOperatorErr
 #include <boost/test/unit_test.hpp>
 
-//[test_operator_err
+//[operator_err
 struct point {
     int x;
     int y;

Deleted: sandbox/local_function/libs/local_function/test/operator_error.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/operator_error.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
+++ (empty file)
@@ -1,16 +0,0 @@
-
-struct point {
- int x;
- int y;
-};
-
-BOOST_AUTO_TEST_CASE( operator_error ) {
- bool BOOST_LOCAL_FUNCTION(const point& p, const point& q) {
- return p.x == q.x && p.y == q.y;
- } BOOST_LOCAL_FUNCTION(operator==) // Error: Cannot use `operator==`.
-
- point a; a.x = 1; a.y = 2;
- point b = a;
- BOOST_CHECK( a == b );
-}
-

Deleted: sandbox/local_function/libs/local_function/test/operator_ok.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/operator_ok.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
+++ (empty file)
@@ -1,22 +0,0 @@
-
-#include <boost/local_function.hpp>
-#define BOOST_TEST_MODULE TestOperatorOk
-#include <boost/test/unit_test.hpp>
-
-//[test_operator_ok
-struct point {
- int x;
- int y;
-};
-
-BOOST_AUTO_TEST_CASE( test_operator_ok ) {
- bool BOOST_LOCAL_FUNCTION(const point& p, const point& q) {
- return p.x == q.x && p.y == q.y;
- } BOOST_LOCAL_FUNCTION_NAME(equal) // OK: not using `operator...`.
-
- point a; a.x = 1; a.y = 2;
- point b = a;
- BOOST_CHECK( equal(a, b) );
-}
-//]
-

Modified: sandbox/local_function/libs/local_function/test/overload.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/overload.cpp (original)
+++ sandbox/local_function/libs/local_function/test/overload.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -4,7 +4,6 @@
 // License, Version 1.0 (see accompanying file LICENSE_1_0.txt or a
 // copy at http://www.boost.org/LICENSE_1_0.txt).
 
-//[overload_cpp
 #include <boost/local_function.hpp>
 #include <boost/functional/overloaded_function.hpp> // For overloading.
 #define BOOST_TEST_MODULE TestOverload
@@ -12,7 +11,7 @@
 #include <string>
 #include <cmath>
 
-//[test_overload
+//[overload
 int add_i(int x, int y) { return x + y; }
 
 BOOST_AUTO_TEST_CASE( test_overload ) {

Modified: sandbox/local_function/libs/local_function/test/return_assign.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/return_assign.cpp (original)
+++ sandbox/local_function/libs/local_function/test/return_assign.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -10,7 +10,7 @@
 #include <boost/test/unit_test.hpp>
 #include <iostream>
 
-//[test_return_assign
+//[return_assign
 void call1(boost::function<int (int) > f) { BOOST_CHECK( f(1) == 5 ); }
 void call0(boost::function<int (void)> f) { BOOST_CHECK( f() == 5 ); }
 

Modified: sandbox/local_function/libs/local_function/test/seq.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/seq.cpp (original)
+++ sandbox/local_function/libs/local_function/test/seq.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -6,7 +6,7 @@
 
 #include <boost/local_function.hpp>
 
-//[test_seq
+//[seq
 struct s {
     void f(double p = 1.23, double q = -1.23) {
         { // Only params.

Modified: sandbox/local_function/libs/local_function/test/ten_void.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/ten_void.cpp (original)
+++ sandbox/local_function/libs/local_function/test/ten_void.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,7 +5,7 @@
 #include <iostream>
 
 BOOST_AUTO_TEST_CASE( test_ten_void ) {
- //[test_ten_void
+ //[ten_void
     int BOOST_LOCAL_FUNCTION(void) { // No parameter.
         return 10;
     } BOOST_LOCAL_FUNCTION_NAME(ten)

Modified: sandbox/local_function/libs/local_function/test/transform.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/transform.cpp (original)
+++ sandbox/local_function/libs/local_function/test/transform.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -11,7 +11,7 @@
 #include <vector>
 
 BOOST_AUTO_TEST_CASE( test_transform ) {
- //[test_transform
+ //[transform
     int offset = 5;
     std::vector<int> v;
     std::vector<int> w;

Modified: sandbox/local_function/libs/local_function/test/typeof.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/typeof.cpp (original)
+++ sandbox/local_function/libs/local_function/test/typeof.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -13,7 +13,7 @@
 #include <algorithm>
 
 BOOST_AUTO_TEST_CASE( test_typeof ) {
- //[test_typeof
+ //[typeof
     int sum = 0, factor = 10;
 
     void BOOST_LOCAL_FUNCTION(const bind factor, bind& sum, int num) {

Modified: sandbox/local_function/libs/local_function/test/typeof_template.cpp
==============================================================================
--- sandbox/local_function/libs/local_function/test/typeof_template.cpp (original)
+++ sandbox/local_function/libs/local_function/test/typeof_template.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -12,7 +12,7 @@
 #include <boost/test/unit_test.hpp>
 #include <algorithm>
 
-//[test_typeof_template
+//[typeof_template
 template<typename T>
 T calculate(const T& factor) {
     T sum = 0;

Modified: sandbox/local_function/libs/scope_exit/example/Jamfile.v2
==============================================================================
--- sandbox/local_function/libs/scope_exit/example/Jamfile.v2 (original)
+++ sandbox/local_function/libs/scope_exit/example/Jamfile.v2 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -1,11 +1,9 @@
 
 import testing ;
 
-test-suite examples :
- [ run try_catch.cpp ]
- [ run try_catch_seq.cpp ]
+run try_catch.cpp ;
+run try_catch_seq.cpp ;
 
- [ run scope_guard.cpp ]
- [ run scope_guard_seq.cpp ]
-;
+run scope_guard.cpp ;
+run scope_guard_seq.cpp ;
 

Modified: sandbox/local_function/libs/scope_exit/example/scope_guard.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/example/scope_guard.cpp (original)
+++ sandbox/local_function/libs/scope_exit/example/scope_guard.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -5,7 +5,7 @@
 #include <utility>
 
 int main(void) {
- //[example_scope_guard_decl
+ //[scope_guard_decl
     bool commit = false;
     std::string currency("EUR");
     double rate = 1.3326;
@@ -15,7 +15,7 @@
     // Transaction...
     //]
 
- //[example_scope_guard_exit
+ //[scope_guard_exit
     BOOST_SCOPE_EXIT(currency_rate_inserted, &commit, &rates, &currency) {
         if(currency_rate_inserted && !commit) rates.erase(currency);
     } BOOST_SCOPE_EXIT_END

Modified: sandbox/local_function/libs/scope_exit/example/try_catch.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/example/try_catch.cpp (original)
+++ sandbox/local_function/libs/scope_exit/example/try_catch.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -15,7 +15,7 @@
 };
 
 void bad(void) {
- //[example_try_catch_bad
+ //[try_catch_bad
     file passwd;
     try {
         passwd.open("/etc/passwd");
@@ -30,7 +30,7 @@
 }
 
 void good(void) {
- //[example_try_catch_good
+ //[try_catch_good
     try {
         file passwd("/etc/passwd");
         BOOST_SCOPE_EXIT(&passwd) {

Modified: sandbox/local_function/libs/scope_exit/example/try_catch_seq.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/example/try_catch_seq.cpp (original)
+++ sandbox/local_function/libs/scope_exit/example/try_catch_seq.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -15,7 +15,7 @@
 };
 
 void bad(void) {
- //[example_try_catch_bad_seq
+ //[try_catch_bad_seq
     file passwd;
     try {
         passwd.open("/etc/passwd");
@@ -30,7 +30,7 @@
 }
 
 void good(void) {
- //[example_try_catch_good_seq
+ //[try_catch_good_seq
     try {
         file passwd("/etc/passwd");
         BOOST_SCOPE_EXIT( (&passwd) ) {

Modified: sandbox/local_function/libs/scope_exit/test/world.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -16,7 +16,7 @@
     std::vector<person> persons_;
 };
 
-//[test_world
+//[world
 void world::add_person(person const& a_person) {
     bool commit = false;
 

Modified: sandbox/local_function/libs/scope_exit/test/world_checkpoint.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_checkpoint.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_checkpoint.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -48,7 +48,7 @@
     std::vector<person> persons_;
 };
 
-//[test_world_checkpoint
+//[world_checkpoint
 void world::add_person(person const& a_person) {
     persons_.push_back(a_person);
 

Modified: sandbox/local_function/libs/scope_exit/test/world_checkpoint_all.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_checkpoint_all.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_checkpoint_all.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -52,7 +52,7 @@
     std::vector<person> persons_;
 };
 
-//[test_world_checkpoint_all
+//[world_checkpoint_all
 void world::add_person(person const& a_person) {
     persons_.push_back(a_person);
 

Modified: sandbox/local_function/libs/scope_exit/test/world_checkpoint_all_seq.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_checkpoint_all_seq.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_checkpoint_all_seq.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -52,7 +52,7 @@
     std::vector<person> persons_;
 };
 
-//[test_world_checkpoint_all_seq
+//[world_checkpoint_all_seq
 void world::add_person(person const& a_person) {
     persons_.push_back(a_person);
 

Modified: sandbox/local_function/libs/scope_exit/test/world_checkpoint_seq.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_checkpoint_seq.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_checkpoint_seq.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -48,7 +48,7 @@
     std::vector<person> persons_;
 };
 
-//[test_world_checkpoint_seq
+//[world_checkpoint_seq
 void world::add_person(person const& a_person) {
     persons_.push_back(a_person);
 

Modified: sandbox/local_function/libs/scope_exit/test/world_lambda.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_lambda.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_lambda.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -14,7 +14,7 @@
     std::vector<person> persons_;
 };
 
-//[test_world_lambda
+//[world_lambda
 #include <functional>
 
 struct scope_exit {

Modified: sandbox/local_function/libs/scope_exit/test/world_seq.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_seq.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_seq.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -16,7 +16,7 @@
     std::vector<person> persons_;
 };
 
-//[test_world_seq
+//[world_seq
 void world::add_person(person const& a_person) {
     bool commit = false;
 

Modified: sandbox/local_function/libs/scope_exit/test/world_this.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_this.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_this.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -22,13 +22,13 @@
 
     persons_.push_back(a_person);
 #ifdef BOOST_NO_LAMBDAS
- //[test_world_this_
+ //[world_this_
     BOOST_SCOPE_EXIT(&commit, this_) { // Capture object `this_`.
         if(!commit) this_->persons_.pop_back();
     } BOOST_SCOPE_EXIT_END
     //]
 #else
- //[test_world_this
+ //[world_this
     BOOST_SCOPE_EXIT(&commit, this) { // Use `this` (C++11).
         if(!commit) this->persons_.pop_back();
     }; // Use `;` instead of `BOOST_SCOPE_EXIT_END` (C++11).

Modified: sandbox/local_function/libs/scope_exit/test/world_this_seq.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_this_seq.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_this_seq.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -22,13 +22,13 @@
 
     persons_.push_back(a_person);
 #ifdef BOOST_NO_LAMBDAS
- //[test_world_this_
+ //[world_this_
     BOOST_SCOPE_EXIT( (&commit) (this_) ) { // Capture object `this_`.
         if(!commit) this_->persons_.pop_back();
     } BOOST_SCOPE_EXIT_END
     //]
 #else
- //[test_world_this
+ //[world_this
     BOOST_SCOPE_EXIT( (&commit) (this) ) { // Use `this` (C++11).
         if(!commit) this->persons_.pop_back();
     }; // Use `;` instead of `BOOST_SCOPE_EXIT_END` (C++11).

Modified: sandbox/local_function/libs/scope_exit/test/world_tpl.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_tpl.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_tpl.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -17,7 +17,7 @@
     std::vector<Person> persons_;
 };
 
-//[test_world_tpl
+//[world_tpl
 template<typename Person>
 void world<Person>::add_person(Person const& a_person) {
     bool commit = false;

Modified: sandbox/local_function/libs/scope_exit/test/world_tpl_seq.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_tpl_seq.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_tpl_seq.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -17,7 +17,7 @@
     std::vector<Person> persons_;
 };
 
-//[test_world_tpl_seq
+//[world_tpl_seq
 template<typename Person>
 void world<Person>::add_person(Person const& a_person) {
     bool commit = false;

Modified: sandbox/local_function/libs/scope_exit/test/world_void.cpp
==============================================================================
--- sandbox/local_function/libs/scope_exit/test/world_void.cpp (original)
+++ sandbox/local_function/libs/scope_exit/test/world_void.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -11,7 +11,7 @@
 struct person {};
 
 struct world_t; BOOST_TYPEOF_REGISTER_TYPE(world_t)
-//[test_world_void
+//[world_void
 struct world_t {
     std::vector<person> persons;
     bool commit;

Modified: sandbox/local_function/libs/utility/identity_type/test/Jamfile.v2
==============================================================================
--- sandbox/local_function/libs/utility/identity_type/test/Jamfile.v2 (original)
+++ sandbox/local_function/libs/utility/identity_type/test/Jamfile.v2 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
@@ -2,7 +2,7 @@
 import testing ;
 
 compile-fail var_err.cpp ;
-run var_ok.cpp ;
+run var.cpp ;
 run template.cpp ;
 run tmp_assert.cpp ;
 

Deleted: sandbox/local_function/libs/utility/identity_type/test/var_ok.cpp
==============================================================================
--- sandbox/local_function/libs/utility/identity_type/test/var_ok.cpp 2012-01-27 13:58:33 EST (Fri, 27 Jan 2012)
+++ (empty file)
@@ -1,20 +0,0 @@
-
-#include <map>
-
-#define VAR(type, n) type var ## n
-
-VAR( int, 1 ); // OK.
-
-//[var_typedef
-typedef std::map<int, char> map_type;
-VAR( map_type, 3 ); // OK.
-//]
-
-//[var_ok
-#include <boost/utility/identity_type.hpp>
-
-VAR( BOOST_IDENTITY_TYPE((std::map<int, char>)), 4 ); // OK.
-//]
-
-int main() { return 0; }
-


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