public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/50701] New: Pair and string constructor copy
@ 2011-10-12 12:53 nicola at nicoladefilippo dot it
2011-10-12 13:01 ` [Bug libstdc++/50701] " paolo.carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: nicola at nicoladefilippo dot it @ 2011-10-12 12:53 UTC (permalink / raw)
To: gcc-bugs
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libstdc++/50701] Pair and string constructor copy
2011-10-12 12:53 [Bug libstdc++/50701] New: Pair and string constructor copy nicola at nicoladefilippo dot it
@ 2011-10-12 13:01 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-12 13:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50701
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-12 13:01:10 UTC ---
You gotta be kidding.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-12 13:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-12 12:53 [Bug libstdc++/50701] New: Pair and string constructor copy nicola at nicoladefilippo dot it
2011-10-12 13:01 ` [Bug libstdc++/50701] " paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).