This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/50701] New: Pair and string constructor copy


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]