From: Yoshitaka Aharen Date: Wed, 10 Oct 2012 10:09:58 +0000 (+0900) Subject: [2155] use auto-generated copy constructor X-Git-Tag: bind10-1.1.0beta1-release~85^2~5^2~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeb6dd5d64907846387b886cd2aa20e018e4234e;p=thirdparty%2Fkea.git [2155] use auto-generated copy constructor --- diff --git a/src/lib/statistics/counter_dict.h b/src/lib/statistics/counter_dict.h index 3715fc298e..0d8b0f07d1 100644 --- a/src/lib/statistics/counter_dict.h +++ b/src/lib/statistics/counter_dict.h @@ -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)