summaryrefslogtreecommitdiff
path: root/cpp/include
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-09-23 21:18:25 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-09-23 21:18:25 +0000
commit01d94bc3735509c118958d767ac3af668ea10178 (patch)
treed0b0d701d85339186aa6f34098628b1090eb0076 /cpp/include
parent51bd1f7bfb650098273abf8dbb31941284eec950 (diff)
downloadqpid-python-01d94bc3735509c118958d767ac3af668ea10178.tar.gz
QPID-2926: Better solution for instantiating qpid::messaging::Handle<> specialisations
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1525706 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include')
-rw-r--r--cpp/include/qpid/messaging/Handle.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/include/qpid/messaging/Handle.h b/cpp/include/qpid/messaging/Handle.h
index 97a8f00b54..2edab26744 100644
--- a/cpp/include/qpid/messaging/Handle.h
+++ b/cpp/include/qpid/messaging/Handle.h
@@ -53,14 +53,15 @@ template <class T> class Handle {
void swap(Handle<T>& h) { T* t = h.impl; h.impl = impl; impl = t; }
+ private:
+ // Not implemented, subclasses must implement.
+ Handle(const Handle&);
+ Handle& operator=(const Handle&);
+
protected:
typedef T Impl;
QPID_MESSAGING_INLINE_EXTERN Handle() :impl() {}
- // Not implemented,subclasses must implement.
- QPID_MESSAGING_EXTERN Handle(const Handle&);
- QPID_MESSAGING_EXTERN Handle& operator=(const Handle&);
-
Impl* impl;
friend class PrivateImplRef<T>;