diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-04-18 20:21:25 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-04-18 20:21:25 +0000 |
commit | d90faf90f97662f678cf9c69c471e012c8daff3b (patch) | |
tree | 1576dc8373419bd393c5686fda8faef45b19cd26 /ace | |
parent | f63808527ec70c7cdd6c9d6db4a9bd659b97edc0 (diff) | |
download | ATCD-d90faf90f97662f678cf9c69c471e012c8daff3b.tar.gz |
ChangeLogTag:Tue Apr 18 15:18:53 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Containers_T.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ace/Containers_T.cpp b/ace/Containers_T.cpp index 5153f4fe68c..7f63492d360 100644 --- a/ace/Containers_T.cpp +++ b/ace/Containers_T.cpp @@ -1177,7 +1177,11 @@ ACE_Double_Linked_List<T>::copy_nodes (ACE_Double_Linked_List<T> &c) for (ACE_Double_Linked_List_Iterator<T> iter (c); !iter.done (); iter.advance ()) - this->insert_head (new T (*iter.next ())); + { + T* temp = (T *) this->allocator_->malloc (sizeof (T)); + new (temp) T (*iter.next ()); + this->insert_head (temp); + } } template <class T> void |