$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r76349 - in sandbox/closure/libs: closure closure/example closure/test local/example
From: lorcaminiti_at_[hidden]
Date: 2012-01-07 18:35:03
Author: lcaminiti
Date: 2012-01-07 18:35:02 EST (Sat, 07 Jan 2012)
New Revision: 76349
URL: http://svn.boost.org/trac/boost/changeset/76349
Log:
Adding libs/closure dirs.
Added:
   sandbox/closure/libs/closure/
   sandbox/closure/libs/closure/example/
   sandbox/closure/libs/closure/test/
Text files modified: 
   sandbox/closure/libs/local/example/Jamfile.jam             |    14 ++++++++++----                          
   sandbox/closure/libs/local/example/profile_boost_local.cpp |     7 +++----                                 
   2 files changed, 13 insertions(+), 8 deletions(-)
Modified: sandbox/closure/libs/local/example/Jamfile.jam
==============================================================================
--- sandbox/closure/libs/local/example/Jamfile.jam	(original)
+++ sandbox/closure/libs/local/example/Jamfile.jam	2012-01-07 18:35:02 EST (Sat, 07 Jan 2012)
@@ -93,8 +93,11 @@
 exe print_map : print_map.cpp ;
 exe print_map_va : print_map_va.cpp ;
 
-#exe profile_boost_local : profile_boost_local.cpp ;
-#        ../../..//libboost_chrono ../../..//libboost_system ;
+exe profile_boost_local : profile_boost_local.cpp :
+    <library>/boost/chrono//boost_chrono
+    <library>/boost/system//boost_system
+    <link>static
+;
 #exe profile_boost_local_inline : profile_boost_local_inline.cpp ;
 #        ../../..//libboost_chrono ../../..//libboost_system ;
 #exe profile_boost_local_for_loop : profile_boost_local_for_loop.cpp ;
@@ -107,8 +110,11 @@
 #        ../../..//libboost_chrono ../../..//libboost_system ;
 #exe profile_boost_lambda : profile_boost_lambda.cpp ;
 #        ../../..//libboost_chrono ../../..//libboost_system ;
-#exe profile_boost_phoenix : profile_boost_phoenix.cpp ;
-#        ../../..//libboost_chrono ../../..//libboost_system ;
+exe profile_boost_phoenix : profile_boost_phoenix.cpp :
+    <library>/boost/chrono//boost_chrono
+    <library>/boost/system//boost_system
+    <link>static
+;
 
 exe scope_guards_errno : scope_guards_errno.cpp ;
 exe scope_guards_errno_va : scope_guards_errno_va.cpp ;
Modified: sandbox/closure/libs/local/example/profile_boost_local.cpp
==============================================================================
--- sandbox/closure/libs/local/example/profile_boost_local.cpp	(original)
+++ sandbox/closure/libs/local/example/profile_boost_local.cpp	2012-01-07 18:35:02 EST (Sat, 07 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).
 
+#include <boost/closure.hpp>
 #include <boost/chrono.hpp>
-#include <boost/local/function.hpp>
 #include <vector>
 #include <algorithm>
 #include <iostream>
@@ -20,10 +20,9 @@
 
     boost::chrono::system_clock::time_point start =
             boost::chrono::system_clock::now();
-    void BOOST_LOCAL_FUNCTION_PARAMS( (const double& num)
-            (bind& sum) (const bind& factor) ) {
+    void BOOST_CLOSURE( (const double& num) (bind& sum) (const bind& factor) ) {
         sum += factor * num;
-    } BOOST_LOCAL_FUNCTION_NAME(add)
+    } BOOST_CLOSURE_END(add)
     boost::chrono::duration<double> decl_sec =
             boost::chrono::system_clock::now() - start;