diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-09 20:26:13 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-09 20:26:13 +0000 |
commit | 699d6143f43b812ca2da8dd85140f2c8f36db3a8 (patch) | |
tree | 8ba6d494408d575a1d661f7d2bf5a3979e770f23 | |
parent | 01f586b569f7765e53ea3bd8b3e4a759e1d42c1a (diff) | |
download | ATCD-699d6143f43b812ca2da8dd85140f2c8f36db3a8.tar.gz |
Added a temporary pointer to get around the macro side effect.
-rw-r--r-- | ace/Containers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ace/Containers.cpp b/ace/Containers.cpp index 335e3f93dc1..a7cf8a35a39 100644 --- a/ace/Containers.cpp +++ b/ace/Containers.cpp @@ -176,9 +176,10 @@ ACE_Unbounded_Stack<T>::copy_all_nodes (const ACE_Unbounded_Stack<T> &s) s_temp != s.head_; s_temp = s_temp->next_) { + ACE_Node<T> *nptr = temp->next_; ACE_NEW_MALLOC (temp->next_, (ACE_Node<T>*) this->allocator_->malloc (sizeof (ACE_Node<T>)), - ACE_Node<T> (s_temp->item_, temp->next_)); + ACE_Node<T> (s_temp->item_, nptr)); temp = temp->next_; } this->cur_size_ = s.cur_size_; |