summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2015-05-12 18:14:52 +0000
committerCharles E. Rolke <chug@apache.org>2015-05-12 18:14:52 +0000
commit0bb03d6ee3ef1f277b9aaee9ad64417669f04e95 (patch)
treec08bda9fb8e24e37a35b37fe40f19fc4755c3be1 /cpp
parentd8dac2ae30a0ed7979c22bb4bb06dbdfa4a35bbe (diff)
downloadqpid-python-0bb03d6ee3ef1f277b9aaee9ad64417669f04e95.tar.gz
QPID-6537: [windows warning] adjust definition of Handle operators
Warning was: "no suitable definition provided for explicit template instantiation request". This fix simply mirrors the code in messaging/Handle.h. (Finally *removing* an EXTERN storage-class attribute fixes a build!) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1679024 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/client/Handle.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/qpid/client/Handle.h b/cpp/src/qpid/client/Handle.h
index b8315481a9..859dca4029 100644
--- a/cpp/src/qpid/client/Handle.h
+++ b/cpp/src/qpid/client/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_CLIENT_INLINE_EXTERN Handle() :impl() {}
- // Not implemented,subclasses must implement.
- QPID_CLIENT_EXTERN Handle(const Handle&);
- QPID_CLIENT_EXTERN Handle& operator=(const Handle&);
-
Impl* impl;
friend class PrivateImplRef<T>; // FIXME aconway 2009-04-30: Specify