[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 case),

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

2018-10-19 Thread filip.gawin at zoho dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: filip.gawin at zoho dot com Target Milestone: --- Problem is caused by this commit: https://github.com/rwengine/openrw/commit/63ab663ea5f2282adfc574a3a537fbf0ec16d8bc#diff-a996c0379ea38c4fa42528c76c60ec03R864 It works with