diff options
Diffstat (limited to 'examples/Shared_Malloc/test_persistence.cpp')
-rw-r--r-- | examples/Shared_Malloc/test_persistence.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/examples/Shared_Malloc/test_persistence.cpp b/examples/Shared_Malloc/test_persistence.cpp index a1fe7a64f18..60a80954d55 100644 --- a/examples/Shared_Malloc/test_persistence.cpp +++ b/examples/Shared_Malloc/test_persistence.cpp @@ -4,10 +4,6 @@ #include "ace/Malloc.h" -#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION) -# include /**/ <iostream.h> -#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */ - typedef ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> MALLOC; typedef ACE_Malloc_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> MALLOC_ITERATOR; @@ -44,16 +40,6 @@ public: void id (u_long id) { id_ = id; } - friend ostream &operator<<(ostream &stream, const Employee &employee) - { - stream << endl; - stream << "Employee name: " << employee.name() << endl; - stream << "Employee id: " << employee.id() << endl; - stream << endl; - - return stream; - } - void *operator new (size_t) { return shmem_manager->malloc (sizeof (Employee)); |