[Bug c++/87658] Cannot use move ctor when inserting to std::map

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

[Bug c++/87658] Cannot use move ctor when inserting to std::map

2018-10-19 Thread filip.gawin at zoho dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87658 --- Comment #3 from Filip Gawin --- Ops, messed code. But you can see that interesting part via link, on github.

[Bug c++/87658] Cannot use move ctor when inserting to std::map

2018-10-19 Thread filip.gawin at zoho dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87658 --- Comment #2 from Filip Gawin --- (In reply to ensadc from comment #1) > > dynamicParts[mf->getName()] = std::move(part); > > operator[] calls the default constructor of the mapped_type (which seems to > be `VehicleObject::Part` in this

[Bug c++/87658] Cannot use move ctor when inserting to std::map

2018-10-19 Thread ensadc at mailnesia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87658 ensadc at mailnesia dot com changed: What|Removed |Added CC||ensadc at mailnesia dot com