This is the mail archive of the
mailing list for the libstdc++ project.
Re: operator== missing on std::__debug::map<>::iterator
On Tue, Dec 11, 2012 at 8:01 AM, Chris Jefferson <firstname.lastname@example.org> wrote:
> On 11/12/12 13:45, Gabriel Dos Reis wrote:
>> On Tue, Dec 11, 2012 at 5:53 AM, Pedro Larroy
>> <email@example.com> wrote:
>>> I'm not discussing if the member operator== is correct or wrong, but
>>> the code compiles fine in several C++ compilers and the only problem I
>>> found was with libstdc++ in debug mode, my point is that it should
>>> either compile or fail in both modes.
> Surely it is better for users if we try to avoid inconsistencies between
> debug mode and non-debug mode which have no good reason for existence?
> Getting C++ programs to run on a variety of compilers and settings is
> complicated enough already, why not try to reduce the inconsistencies where
> possible, where there is no cost?
Because if your program invokes undefined beahviour, you are on your own.