summaryrefslogtreecommitdiff
path: root/cpp/src/qmf/PrivateImplRef.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-05-22 20:16:18 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-05-22 20:16:18 +0000
commitafadf76e64d735239b803b1aef7018bb17c8b11e (patch)
treea5ac43432e94a4cef8290837c8a4f9d51633d98c /cpp/src/qmf/PrivateImplRef.h
parentc75654841b7be197055598819111a9d785d79940 (diff)
downloadqpid-python-afadf76e64d735239b803b1aef7018bb17c8b11e.tar.gz
QPID-3004: Keep the code compatible with clang C++ compiler (and probably gcc 4.7 too)
Fix up intrusive_ptr_add_ref(RefCounted*)/intrusive_ptr_release(RefCounted*) so they are now found by argument dependent lookup. Trivial: Added missing newline at end of file git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1341608 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qmf/PrivateImplRef.h')
-rw-r--r--cpp/src/qmf/PrivateImplRef.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qmf/PrivateImplRef.h b/cpp/src/qmf/PrivateImplRef.h
index 960cbb2e09..c0c07d7e1b 100644
--- a/cpp/src/qmf/PrivateImplRef.h
+++ b/cpp/src/qmf/PrivateImplRef.h
@@ -76,15 +76,15 @@ template <class T> class PrivateImplRef {
/** Set the implementation pointer in a handle */
static void set(T& t, const intrusive_ptr& p) {
if (t.impl == p) return;
- if (t.impl) boost::intrusive_ptr_release(t.impl);
+ if (t.impl) intrusive_ptr_release(t.impl);
t.impl = p.get();
- if (t.impl) boost::intrusive_ptr_add_ref(t.impl);
+ if (t.impl) intrusive_ptr_add_ref(t.impl);
}
// Helper functions to implement the ctor, dtor, copy, assign
- static void ctor(T& t, Impl* p) { t.impl = p; if (p) boost::intrusive_ptr_add_ref(p); }
+ static void ctor(T& t, Impl* p) { t.impl = p; if (p) intrusive_ptr_add_ref(p); }
static void copy(T& t, const T& x) { if (&t == &x) return; t.impl = 0; assign(t, x); }
- static void dtor(T& t) { if(t.impl) boost::intrusive_ptr_release(t.impl); }
+ static void dtor(T& t) { if(t.impl) intrusive_ptr_release(t.impl); }
static T& assign(T& t, const T& x) { set(t, get(x)); return t;}
};