From 430a676dd05d60a427cdd6786b72bd8651444967 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Mon, 23 Sep 2013 21:18:25 +0000 Subject: QPID-2926: Better solution for instantiating qpid::messaging::Handle<> specialisations git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525706 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/include/qpid/messaging/Handle.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/include') diff --git a/qpid/cpp/include/qpid/messaging/Handle.h b/qpid/cpp/include/qpid/messaging/Handle.h index 97a8f00b54..2edab26744 100644 --- a/qpid/cpp/include/qpid/messaging/Handle.h +++ b/qpid/cpp/include/qpid/messaging/Handle.h @@ -53,14 +53,15 @@ template class Handle { void swap(Handle& 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; -- cgit v1.2.1