Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86466 - trunk/libs/thread/example
From: vicente.botet_at_[hidden]
Date: 2013-10-26 18:43:12


Author: viboes
Date: 2013-10-26 18:43:12 EDT (Sat, 26 Oct 2013)
New Revision: 86466
URL: http://svn.boost.org/trac/boost/changeset/86466

Log:
Thread: fix double definition of i in test.

Text files modified:
   trunk/libs/thread/example/future_unwrap.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/thread/example/future_unwrap.cpp
==============================================================================
--- trunk/libs/thread/example/future_unwrap.cpp Sat Oct 26 18:42:53 2013 (r86465)
+++ trunk/libs/thread/example/future_unwrap.cpp 2013-10-26 18:43:12 EDT (Sat, 26 Oct 2013) (r86466)
@@ -35,8 +35,8 @@
   {
     boost::future<boost::future<int> > outer_future = boost::async(boost::launch::async, &p2);
     boost::future<int> inner_future = outer_future.unwrap();
- int i = inner_future.get();
- BOOST_THREAD_LOG << "i= "<< i << "" << BOOST_THREAD_END_LOG;
+ int ii = inner_future.get();
+ BOOST_THREAD_LOG << "ii= "<< ii << "" << BOOST_THREAD_END_LOG;
   }
   catch (std::exception& ex)
   {


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