[Bug libstdc++/50701] New: Pair and string constructor copy
nicola at nicoladefilippo dot it
gcc-bugzilla@gcc.gnu.org
Wed Oct 12 12:53:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50701
Bug #: 50701
Summary: Pair and string constructor copy
Classification: Unclassified
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: nicola@nicoladefilippo.it
I have this situation, i presume there is problem with pair and copy contructor
map1 = new map <string, string>;
map1->insert(pair<string, string>(name,value));
// don't Compile
// pair<string, map<string, string> * > p1(string(target), map1);
// COMPILE solution 1
// mapConfiguration.insert(pair<string, map<string, string> *>(string(target),
map1));
// COMPILE solution 2
pair<string, map<string, string> * > p1(target, map1);
More information about the Gcc-bugs
mailing list