summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-02-08 22:05:32 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-02-08 22:05:32 +0000
commit2eb535adb21bfd71c7631a4dc1b1ceaab38e5a9d (patch)
tree93d53ec5b05935eefe1bff62267dd9ecbfd7e368 /tests
parentff62a6fcc70c35448f92e748ff1118537c096d3d (diff)
downloadATCD-2eb535adb21bfd71c7631a4dc1b1ceaab38e5a9d.tar.gz
foo
Diffstat (limited to 'tests')
-rw-r--r--tests/Map_Manager_Test.cpp15
-rw-r--r--tests/Map_Manager_Test_Key.h22
2 files changed, 23 insertions, 14 deletions
diff --git a/tests/Map_Manager_Test.cpp b/tests/Map_Manager_Test.cpp
index c955acc3c84..802e0520e7e 100644
--- a/tests/Map_Manager_Test.cpp
+++ b/tests/Map_Manager_Test.cpp
@@ -23,22 +23,9 @@
#include "ace/Profile_Timer.h"
#include "ace/Synch.h"
#include "test_config.h"
+#include "Map_Manager_Test_Key.h"
typedef ACE_Null_Mutex MUTEX;
-
-class KEY
-{
-public:
- KEY (size_t v = 0): value_ (v)
- { }
-
- size_t hash (void) const { return this->value_; }
- operator size_t () const { return this->value_; }
-
-private:
- size_t value_;
-};
-
typedef size_t VALUE;
typedef ACE_Map_Manager <KEY, VALUE, MUTEX> MAP_MANAGER;
diff --git a/tests/Map_Manager_Test_Key.h b/tests/Map_Manager_Test_Key.h
new file mode 100644
index 00000000000..7e8b9811922
--- /dev/null
+++ b/tests/Map_Manager_Test_Key.h
@@ -0,0 +1,22 @@
+class KEY
+// ============================================================================
+// = TITLE
+// Define a key for use with the Map_Manager_Test.
+//
+// = DESCRIPTION
+// This class gets its own header file to work around AIX C++
+// compiler "features" related to template instantiation... It is
+// only used by Map_Manager_Test.cpp
+// ============================================================================
+{
+public:
+ KEY (size_t v = 0): value_ (v)
+ { }
+
+ size_t hash (void) const { return this->value_; }
+ operator size_t () const { return this->value_; }
+
+private:
+ size_t value_;
+};
+