summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/RefCounted.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2011-05-09 19:56:00 +0000
committerAndrew Stitcher <astitcher@apache.org>2011-05-09 19:56:00 +0000
commitd5dfdb1858be769350ada946df7c3b03db1564b3 (patch)
treea5a2aa17936891329a0a10f6001afdb305e7ac4a /cpp/src/qpid/RefCounted.h
parent9a1cbfa40824040d26dcf632cfb24681405b6dd7 (diff)
downloadqpid-python-d5dfdb1858be769350ada946df7c3b03db1564b3.tar.gz
QPID-3004: Get Clang to compile qpid c++
- Finish getting boost::intrusive_ptr working (may be compiler bug) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1101181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/RefCounted.h')
-rw-r--r--cpp/src/qpid/RefCounted.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/qpid/RefCounted.h b/cpp/src/qpid/RefCounted.h
index e7a9bf31c1..f9e0107103 100644
--- a/cpp/src/qpid/RefCounted.h
+++ b/cpp/src/qpid/RefCounted.h
@@ -53,8 +53,10 @@ protected:
// intrusive_ptr support.
namespace boost {
-inline void intrusive_ptr_add_ref(const qpid::RefCounted* p) { p->addRef(); }
-inline void intrusive_ptr_release(const qpid::RefCounted* p) { p->release(); }
+template <typename T>
+inline void intrusive_ptr_add_ref(const T* p) { p->qpid::RefCounted::addRef(); }
+template <typename T>
+inline void intrusive_ptr_release(const T* p) { p->qpid::RefCounted::release(); }
}