Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77356 - trunk/libs/thread/test
From: vicente.botet_at_[hidden]
Date: 2012-03-17 08:47:55


Author: viboes
Date: 2012-03-17 08:47:54 EDT (Sat, 17 Mar 2012)
New Revision: 77356
URL: http://svn.boost.org/trac/boost/changeset/77356

Log:
Thread: Avoid warning boost/bind/bind.hpp(392) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data

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

Modified: trunk/libs/thread/test/test_thread_launching.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_launching.cpp (original)
+++ trunk/libs/thread/test/test_thread_launching.cpp 2012-03-17 08:47:54 EDT (Sat, 17 Mar 2012)
@@ -145,8 +145,10 @@
     }
 
     callable_multiple_arg func;
-
- boost::thread callable3(func,"hello",x,1.2);
+ // Avoid
+ // boost/bind/bind.hpp(392) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
+
+ boost::thread callable3(func,"hello",x,1);
     callable3.join();
     BOOST_CHECK(callable_multiple_arg::called_three);
     BOOST_CHECK_EQUAL(callable_multiple_arg::called_three_arg1,"hello");


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