Hi,
On 08/03/2012 06:17 AM, Ollie Wild wrote:
Patch courtesy Richard Smith at Google:
Fix bug in the implementation of std::map's operator[]. Construct an
object of type value_type, rather than using std::make_pair, so as to
allow mapped_type to have an *explicit* copy constructor.
See [map.access] (23.4.4.3)/5 for the corresponding standardese.
Tested via bootstrap + test.
Okay for trunk?
Ok, but, can you also double check and in case fix unordered_map too?
Looks like we have the same issue, right?
Thanks!
Paolo.
PS: remember that all the library patches go to libstdc++@ too, and
preferably please add something to the Subject about the library (like
"[v3] ... ")