Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71639 - sandbox/block_ptr/libs/smart_ptr/example
From: phil_at_[hidden]
Date: 2011-04-30 20:34:25


Author: pbouchard
Date: 2011-04-30 20:34:25 EDT (Sat, 30 Apr 2011)
New Revision: 71639
URL: http://svn.boost.org/trac/boost/changeset/71639

Log:
* Fixed Jamfile
Text files modified:
   sandbox/block_ptr/libs/smart_ptr/example/Jamfile.v2 | 10 +++++++---
   sandbox/block_ptr/libs/smart_ptr/example/block_ptr_test1.cpp | 5 +++--
   2 files changed, 10 insertions(+), 5 deletions(-)

Modified: sandbox/block_ptr/libs/smart_ptr/example/Jamfile.v2
==============================================================================
--- sandbox/block_ptr/libs/smart_ptr/example/Jamfile.v2 (original)
+++ sandbox/block_ptr/libs/smart_ptr/example/Jamfile.v2 2011-04-30 20:34:25 EDT (Sat, 30 Apr 2011)
@@ -16,6 +16,10 @@
 
 # bjam -V2 threading=multi target-os=cygwin threadapi=pthread variant=debug
 
+lib boost_regex : : <name>boost_regex ;
+lib boost_thread : : <name>boost_thread ;
+lib boost_unit_test_framework : : <name>boost_unit_test_framework ;
+
 project :
     : requirements
         <include>../../..
@@ -24,7 +28,7 @@
 ;
 
 test-suite "block_ptr_tests" :
- [ run block_ptr_test1.cpp /boost//boost_unit_test_framework ]
- [ run block_ptr_test3.cpp /boost//boost_unit_test_framework ]
- [ run t100_test1.cpp /boost//boost_regex ]
+ [ run block_ptr_test1.cpp boost_thread boost_unit_test_framework ]
+ [ run block_ptr_test3.cpp boost_thread boost_unit_test_framework ]
+ [ run t100_test1.cpp boost_regex ]
     ;

Modified: sandbox/block_ptr/libs/smart_ptr/example/block_ptr_test1.cpp
==============================================================================
--- sandbox/block_ptr/libs/smart_ptr/example/block_ptr_test1.cpp (original)
+++ sandbox/block_ptr/libs/smart_ptr/example/block_ptr_test1.cpp 2011-04-30 20:34:25 EDT (Sat, 30 Apr 2011)
@@ -9,6 +9,7 @@
 #include <iostream>
 
 #include <boost/block_ptr.hpp>
+#include <boost/current_function.hpp>
 
 
 using namespace std;
@@ -22,12 +23,12 @@
         
         A(int i = 0) : i(i)
         {
- cout << __FUNCTION__ << ": " << i << endl;
+ cout << BOOST_CURRENT_FUNCTION << ": " << i << endl;
         }
         
         ~A()
         {
- cout << __FUNCTION__ << ": " << i << endl;
+ cout << BOOST_CURRENT_FUNCTION << ": " << i << endl;
         }
 };
 


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