diff options
Diffstat (limited to 'ace/Containers_T.h')
-rw-r--r-- | ace/Containers_T.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/ace/Containers_T.h b/ace/Containers_T.h index d16250bd4aa..ebefca4e561 100644 --- a/ace/Containers_T.h +++ b/ace/Containers_T.h @@ -580,6 +580,14 @@ protected: // Remember where we are. ACE_Double_Linked_List<T> &dllist_; + +private: + ACE_Double_Linked_List_Iterator (const ACE_Double_Linked_List_Iterator &); + ACE_Double_Linked_List_Iterator & + operator= (const ACE_Double_Linked_List_Iterator & rhs); + // Explicitly disallow use of implicitly generated copy + // constructor and assignment operator to prevent inadvertent + // memory leaks. }; template <class T> @@ -829,10 +837,10 @@ public: // = STL styled iteration, compare, and reference functions. - ACE_Unbounded_Set_Iterator<T> operator++ (void); + ACE_Unbounded_Set_Iterator<T> operator++ (int); // Postfix advance. - ACE_Unbounded_Set_Iterator<T>& operator++ (int); + ACE_Unbounded_Set_Iterator<T>& operator++ (void); // Prefix advance. T& operator* (void); @@ -846,6 +854,13 @@ public: // Declare the dynamic allocation hooks. private: + // ACE_Unbounded_Set_Iterator (const ACE_Unbounded_Set_Iterator<T> &) + ACE_Unbounded_Set_Iterator<T> & + operator= (const ACE_Unbounded_Set_Iterator<T> & rhs); + // Explicitly disallow use of implicitly generated copy + // constructor and assignment operator to prevent inadvertent + // memory leaks. + ACE_Node<T> *current_; // Pointer to the current node in the iteration. |