Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76424 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2012-01-12 02:30:06


Author: chris_kohlhoff
Date: 2012-01-12 02:30:05 EST (Thu, 12 Jan 2012)
New Revision: 76424
URL: http://svn.boost.org/trac/boost/changeset/76424

Log:
Fix MSVC "performance warning".

Text files modified:
   trunk/boost/asio/detail/task_io_service.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/asio/detail/task_io_service.hpp
==============================================================================
--- trunk/boost/asio/detail/task_io_service.hpp (original)
+++ trunk/boost/asio/detail/task_io_service.hpp 2012-01-12 02:30:05 EST (Thu, 12 Jan 2012)
@@ -89,7 +89,7 @@
   // Return whether a handler can be dispatched immediately.
   bool can_dispatch()
   {
- return thread_call_stack::contains(this);
+ return thread_call_stack::contains(this) != 0;
   }
 
   // Request invocation of the given handler.


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