From 0206de690f9ffa1a7ca04aaef840830f491e0979 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 6 Feb 2015 18:26:15 +0000 Subject: Fix operator bool() to work with Visual Studio 2013 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1657914 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/windows/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/src/qpid/sys/windows/Thread.cpp b/cpp/src/qpid/sys/windows/Thread.cpp index b342c9da1d..8034680664 100755 --- a/cpp/src/qpid/sys/windows/Thread.cpp +++ b/cpp/src/qpid/sys/windows/Thread.cpp @@ -224,7 +224,7 @@ Thread::Thread(Runnable* runnable) : impl(ThreadPrivate::createThread(runnable)) Thread::Thread(Runnable& runnable) : impl(ThreadPrivate::createThread(&runnable)) {} Thread::operator bool() { - return impl; + return !!impl; } bool Thread::operator==(const Thread& t) const { -- cgit v1.2.1