summaryrefslogtreecommitdiff
path: root/ACE/ace/Based_Pointer_Repository.cpp
diff options
context:
space:
mode:
authorAdam Mitz <mitza@ociweb.com>2016-08-24 15:40:44 -0500
committerAdam Mitz <mitza@ociweb.com>2016-08-24 15:40:44 -0500
commit411929ec7d2550f289eb1a2f045f2fc6651cb002 (patch)
tree29ce85fd3f080d75c3f1914a70d5f94148a63635 /ACE/ace/Based_Pointer_Repository.cpp
parentc6a04b11d5e960451861a5d51d469dc48376a05f (diff)
downloadATCD-411929ec7d2550f289eb1a2f045f2fc6651cb002.tar.gz
*_SINGLETON_DECLARE needs to appear in .cpp files, not .h.
This prevents multiple definition of typeinfo symbols during linking, only seen on arm-linux-gnueabihf-g++ but the code is invalid C++ on all platforms.
Diffstat (limited to 'ACE/ace/Based_Pointer_Repository.cpp')
-rw-r--r--ACE/ace/Based_Pointer_Repository.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ACE/ace/Based_Pointer_Repository.cpp b/ACE/ace/Based_Pointer_Repository.cpp
index 6ec16f555ca..75727e234a8 100644
--- a/ACE/ace/Based_Pointer_Repository.cpp
+++ b/ACE/ace/Based_Pointer_Repository.cpp
@@ -119,5 +119,8 @@ ACE_Based_Pointer_Repository::unbind (void *addr)
ACE_SINGLETON_TEMPLATE_INSTANTIATE(ACE_Singleton, ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX);
+ACE_SINGLETON_DECLARE (ACE_Singleton,
+ ACE_Based_Pointer_Repository,
+ ACE_SYNCH_RW_MUTEX)
ACE_END_VERSIONED_NAMESPACE_DECL