diff options
author | Steve Huston <shuston@riverace.com> | 2002-02-26 00:32:50 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2002-02-26 00:32:50 +0000 |
commit | 1cf181dfafdee7b8ad86ef74a3ca5b307a4e4c6e (patch) | |
tree | bf8a1ad63388076bacef18938263a7bc474173d6 /tests | |
parent | f1c2f2db1ca6a3cf33e93e78328066573782c072 (diff) | |
download | ATCD-1cf181dfafdee7b8ad86ef74a3ca5b307a4e4c6e.tar.gz |
ChangeLogTag:Mon Feb 25 19:30:54 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Collection_Test.cpp | 11 | ||||
-rw-r--r-- | tests/Collection_Test.h | 34 |
2 files changed, 35 insertions, 10 deletions
diff --git a/tests/Collection_Test.cpp b/tests/Collection_Test.cpp index 5bc7c8cacc4..2d4477d9cd1 100644 --- a/tests/Collection_Test.cpp +++ b/tests/Collection_Test.cpp @@ -22,16 +22,7 @@ ACE_RCSID(tests, Collection_Test, "$Id$") #include "ace/Containers.h" - -typedef void (*deletion_func)(void* p); -struct UglyThing -{ - void *alloc_; - deletion_func dfunc_; - - UglyThing (void* alloc = 0, deletion_func dfunc = 0); - int operator== (const UglyThing& r) const; -}; +#include "Collection_Test.h" UglyThing::UglyThing (void* alloc, deletion_func dfunc) : alloc_ (alloc) diff --git a/tests/Collection_Test.h b/tests/Collection_Test.h new file mode 100644 index 00000000000..1ac52d0a465 --- /dev/null +++ b/tests/Collection_Test.h @@ -0,0 +1,34 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// tests +// +// = FILENAME +// Collection_Test.h +// +// = DESCRIPTION +// Define class needed for generating templates. IBM C++ requires this to +// be in its own file for auto template instantiation. +// +// = AUTHOR +// Irfan Pyarali <irfan@cs.wustl.edu> +// +// ============================================================================ + +#ifndef ACE_TESTS_COLLECTION_TEST_H +#define ACE_TESTS_COLLECTION_TEST_H + +typedef void (*deletion_func)(void* p); + +struct UglyThing +{ + void *alloc_; + deletion_func dfunc_; + + UglyThing (void* alloc = 0, deletion_func dfunc = 0); + int operator== (const UglyThing& r) const; +}; + +#endif /* ACE_TESTS_COLLECTION_TEST_H */ |