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: unassig...@gcc.gnu.org
        ReportedBy: nic...@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);

Reply via email to