]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2155] use auto-generated copy constructor
authorYoshitaka Aharen <aharen@jprs.co.jp>
Wed, 10 Oct 2012 10:09:58 +0000 (19:09 +0900)
committerYoshitaka Aharen <aharen@jprs.co.jp>
Thu, 15 Nov 2012 07:14:51 +0000 (16:14 +0900)
src/lib/statistics/counter_dict.h

index 3715fc298e98b884742c2a9eb8abbfaa422f3bd8..0d8b0f07d169008a49efdc8957d757790f6f24f8 100644 (file)
@@ -79,26 +79,7 @@ public:
             ///
             /// This method never throws an exception.
             inline ~ConstIterator() {}
-            /// The assignment operator.
-            ///
-            /// This method is mostly exception free. But it may still
-            /// throw a standard exception if memory allocation fails
-            /// inside the method.
-            inline ConstIterator& operator=(const ConstIterator& source) {
-                iterator_ = source.iterator_;
-                return (*this);
-            }
-
-            /// The copy constructor.
-            ///
-            /// This constructor is mostly exception free. But it may still
-            /// throw a standard exception if memory allocation fails
-            /// inside the method.
-            inline ConstIterator(const ConstIterator& source) :
-                iterator_(source.iterator_)
-            {}
-            //
-            // Constructor from implementation detail DictionaryMap::const_iterator
+            /// Constructor from implementation detail DictionaryMap::const_iterator
             inline ConstIterator(
                 DictionaryMap::const_iterator iterator) :
                 iterator_(iterator)