Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66156 - trunk/libs/asio/test
From: chris_at_[hidden]
Date: 2010-10-23 20:26:13


Author: chris_kohlhoff
Date: 2010-10-23 20:26:10 EDT (Sat, 23 Oct 2010)
New Revision: 66156
URL: http://svn.boost.org/trac/boost/changeset/66156

Log:
Fix for IBM C++ compiler.

Text files modified:
   trunk/libs/asio/test/deadline_timer.cpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/libs/asio/test/deadline_timer.cpp
==============================================================================
--- trunk/libs/asio/test/deadline_timer.cpp (original)
+++ trunk/libs/asio/test/deadline_timer.cpp 2010-10-23 20:26:10 EDT (Sat, 23 Oct 2010)
@@ -261,6 +261,11 @@
   BOOST_CHECK(allocation_count == 0);
 }
 
+void io_service_run(boost::asio::io_service* ios)
+{
+ ios->run();
+}
+
 void deadline_timer_thread_test()
 {
   boost::asio::io_service ios;
@@ -269,7 +274,7 @@
   boost::asio::deadline_timer t2(ios);
   int count = 0;
 
- boost::thread th(boost::bind(&boost::asio::io_service::run, &ios));
+ boost::thread th(boost::bind(io_service_run, &ios));
 
   t2.expires_from_now(boost::posix_time::seconds(2));
   t2.wait();


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