diff options
author | Adam Mitz <mitza@ociweb.com> | 2016-08-24 15:40:44 -0500 |
---|---|---|
committer | Adam Mitz <mitza@ociweb.com> | 2016-08-24 15:40:44 -0500 |
commit | 411929ec7d2550f289eb1a2f045f2fc6651cb002 (patch) | |
tree | 29ce85fd3f080d75c3f1914a70d5f94148a63635 /ACE/ace/Based_Pointer_Repository.cpp | |
parent | c6a04b11d5e960451861a5d51d469dc48376a05f (diff) | |
download | ATCD-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.cpp | 3 |
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 |