[Bug libstdc++/84056] map insertes a pair when check a value
alper.ccc at yandex dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 26 09:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84056
--- Comment #5 from Alper Ce <alper.ccc at yandex dot com> ---
(In reply to Marc Glisse from comment #4)
> (In reply to Alper Ce from comment #3)
> > I didn't assign anything to my_map(i didn't use assignment operator = ), i
> > just used == operator to check value of it.
>
> Again, did you read the doc for operator[]? For instance
> http://en.cppreference.com/w/cpp/container/map/operator_at
Sorry
You are right.
More information about the Gcc-bugs
mailing list