This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: operator== missing on std::__debug::map<>::iterator


Hi Paolo

What do you mean by doesn't exists? It exists in release mode in
_Rb_tree_iterator class

      bool
      operator==(const _Self& __x) const
      { return _M_node == __x._M_node; }

But I think it doesn't exist in the debug map iterator class, as the
compiler error shows.

Shouldn't it be added to the debug map iterator class also so the code
compiles in both release and debug modes?  I don't think many people
know about the _GLIBCXX_DEBUG  macro.

Pedro.

On Mon, Dec 10, 2012 at 5:32 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi,
>
>
> On 12/10/2012 05:18 PM, Pedro Larroy wrote:
>>
>>      bool operator==(itor right) const
>>      {
>>         return m_t::iterator::operator==(right);
>
> This doesn't exist, and AFAICS there is nothing wrong with that.
>
> Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]