libstdc++/86: map & set iterator comparisons are not type-safe

Benjamin Kosnik bkoz@redhat.com
Thu Sep 7 10:47:00 GMT 2000


The following reply was made to PR libstdc++/86; it has been noted by GNATS.

From: Benjamin Kosnik <bkoz@redhat.com>
To: bgarcia@laurelnetworks.com
Cc: libstdc++-gnats@sourceware.cygnus.com
Subject: Re: libstdc++/86: map & set iterator comparisons are not type-safe
Date: Thu, 7 Sep 2000 10:37:15 -0700 (PDT)

 thanks this is an especially well-formed bug report. i'll check this 
 stuff in later today.
 
 nice to be working with you. . . . 
 
 -benjamin
 
 
 On 7 Sep 2000 bgarcia@laurelnetworks.com wrote:
 > 
 > The problem is that operator==() and operator!=() are
 > defined to take _Rb_tree_base_iterator arguments.
 > The fix is to make these functions templates that take
 > _Rb_tree_iterator<> arguments instead.  This should not
 > result in any less efficiency, since in both cases these
 > functions are declared inline.
 > 


More information about the Libstdc++-prs mailing list