/[pcre]/code/trunk/pcre_stringpiece_unittest.cc
ViewVC logotype

Diff of /code/trunk/pcre_stringpiece_unittest.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 579 by ph10, Tue Sep 11 12:57:06 2007 UTC revision 580 by ph10, Fri Nov 26 11:16:43 2010 UTC
# Line 24  Line 24 
24    }                                                     \    }                                                     \
25  } while (0)  } while (0)
26    
 using std::map;  
 using std::make_pair;  
27  using pcrecpp::StringPiece;  using pcrecpp::StringPiece;
28    
29  static void CheckSTLComparator() {  static void CheckSTLComparator() {
# Line 37  static void CheckSTLComparator() { Line 35  static void CheckSTLComparator() {
35    StringPiece p2(s2);    StringPiece p2(s2);
36    StringPiece p3(s3);    StringPiece p3(s3);
37    
38    typedef map<StringPiece, int> TestMap;    typedef std::map<StringPiece, int> TestMap;
39    TestMap map;    TestMap map;
40    
41    map.insert(make_pair(p1, 0));    map.insert(std::make_pair(p1, 0));
42    map.insert(make_pair(p2, 1));    map.insert(std::make_pair(p2, 1));
43    map.insert(make_pair(p3, 2));    map.insert(std::make_pair(p3, 2));
44    
45    CHECK(map.size() == 3);    CHECK(map.size() == 3);
46    
47    TestMap::const_iterator iter = map.begin();    TestMap::const_iterator iter = map.begin();

Legend:
Removed from v.579  
changed lines
  Added in v.580

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12