summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2015-02-06 18:26:15 +0000
committerStephen D. Huston <shuston@apache.org>2015-02-06 18:26:15 +0000
commit0206de690f9ffa1a7ca04aaef840830f491e0979 (patch)
tree62e860b65cf253b1a4b2125151dff38e85fd8d97 /cpp
parent41ed51032a8bd8fd0f23357e8b3e3373eb19e36c (diff)
downloadqpid-python-0206de690f9ffa1a7ca04aaef840830f491e0979.tar.gz
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
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/src/qpid/sys/windows/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
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 {