summaryrefslogtreecommitdiff
path: root/ACE/ace/Service_Repository.h
diff options
context:
space:
mode:
authorAdam Mitz <mitza@ociweb.com>2015-11-06 17:07:11 -0600
committerAdam Mitz <mitza@ociweb.com>2015-11-06 17:07:11 -0600
commitac5e1702c9f9bee9f1f7bfce8c1a6f3847ea6b4b (patch)
tree0e70d1f51c39e688a05a6cdc2af58408222e4a0d /ACE/ace/Service_Repository.h
parent5272b5b81f92c298cb998b5bb0b0dbca3e7f29fe (diff)
downloadATCD-ac5e1702c9f9bee9f1f7bfce8c1a6f3847ea6b4b.tar.gz
Merged branch ace-face-safety (FACE Safety Profile import from OCITAO).
Diffstat (limited to 'ACE/ace/Service_Repository.h')
-rw-r--r--ACE/ace/Service_Repository.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ACE/ace/Service_Repository.h b/ACE/ace/Service_Repository.h
index 4352c540ac3..65e37668449 100644
--- a/ACE/ace/Service_Repository.h
+++ b/ACE/ace/Service_Repository.h
@@ -22,6 +22,7 @@
#include "ace/Default_Constants.h"
#include "ace/Recursive_Thread_Mutex.h"
#include "ace/Array_Map.h"
+#include "ace/Malloc_Base.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -185,7 +186,11 @@ protected:
const ACE_DLL &adll);
/// The typedef of the array used to store the services.
- typedef ACE_Array_Map <size_t, const ACE_Service_Type*> array_type;
+#if defined (ACE_HAS_ALLOC_HOOKS)
+ typedef ACE_Array_Map<size_t, const ACE_Service_Type*, std::equal_to<size_t>, ACE_Allocator_Std_Adapter<std::pair<size_t, const ACE_Service_Type*> > > array_type;
+#else
+ typedef ACE_Array_Map<size_t, const ACE_Service_Type*> array_type;
+#endif /* ACE_HAS_ALLOC_HOOKS */
/// Contains all the configured services.
array_type service_array_;