[Bug libstdc++/84056] map insertes a pair when check a value

2018-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84056 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/84056] map insertes a pair when check a value

2018-01-26 Thread alper.ccc at yandex dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84056 --- Comment #5 from Alper Ce --- (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. >

[Bug libstdc++/84056] map insertes a pair when check a value

2018-01-26 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84056 --- Comment #4 from Marc Glisse --- (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[]?

[Bug libstdc++/84056] map insertes a pair when check a value

2018-01-26 Thread alper.ccc at yandex dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84056 --- Comment #3 from Alper Ce --- (In reply to Marc Glisse from comment #2) > Where is the bug? Did you read the documentation for operator[]? I didn't assign anything to my_map(i didn't use assignment operator = ), i just used == operator to

[Bug libstdc++/84056] map insertes a pair when check a value

2018-01-25 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84056 --- Comment #2 from Marc Glisse --- Where is the bug? Did you read the documentation for operator[]?