This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/50701] New: Pair and string constructor copy
- From: "nicola at nicoladefilippo dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Oct 2011 12:52:44 +0000
- Subject: [Bug libstdc++/50701] New: Pair and string constructor copy
- Auto-submitted: auto-generated
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);