diff options
author | Andrew Stitcher <astitcher@apache.org> | 2014-04-02 21:23:45 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2014-04-02 21:23:45 +0000 |
commit | 631a175a87b57f2e7fd087458156d7efe9f46edc (patch) | |
tree | cb329497aab97aecf4b95ff95207e341b624257c /qpid/cpp/src/qpid/sys/posix | |
parent | a7a3046130ea56bf17089de3a55da4f5efd26596 (diff) | |
download | qpid-python-631a175a87b57f2e7fd087458156d7efe9f46edc.tar.gz |
QPID-5659: Fixes to compile with C++11 (needed to compile with clang on FreeBSD 10)
- shared_ptr no longer has a default conversion to bool.
- Change in default destructor semantics: by default destructors are now
not allowed to throw exceptions.
- stringstream no longer has a default conversion to string.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1584199 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/sys/posix')
-rw-r--r-- | qpid/cpp/src/qpid/sys/posix/Thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/sys/posix/Thread.cpp b/qpid/cpp/src/qpid/sys/posix/Thread.cpp index a1d6396763..2075e1dfbc 100644 --- a/qpid/cpp/src/qpid/sys/posix/Thread.cpp +++ b/qpid/cpp/src/qpid/sys/posix/Thread.cpp @@ -55,7 +55,7 @@ Thread::Thread(Runnable* runnable) : impl(new ThreadPrivate(runnable)) {} Thread::Thread(Runnable& runnable) : impl(new ThreadPrivate(&runnable)) {} Thread::operator bool() { - return impl; + return !!impl; } bool Thread::operator==(const Thread& t) const { |