File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,24 +22,6 @@ std::string x_value(X const& x)
2222 return " gotya " + x.s ;
2323}
2424
25- std::string
26- print_xmap_entry (std::pair<std::string const , X> const & e)
27- {
28- std::string r;
29- r += ' (' ;
30- r += e.first ;
31- r += " , " ;
32- r += e.second .s ;
33- r += ' )' ;
34- return r;
35- }
36-
37- X&
38- get_xmap_entry (std::pair<std::string const , X>& e)
39- {
40- return e.second ;
41- }
42-
4325BOOST_PYTHON_MODULE (map_indexing_suite_ext)
4426{
4527 class_<X>(" X" )
@@ -53,11 +35,6 @@ BOOST_PYTHON_MODULE(map_indexing_suite_ext)
5335
5436 def (" x_value" , x_value);
5537 implicitly_convertible<std::string, X>();
56-
57- class_<std::pair<std::string const , X> >(" XMapEntry" )
58- .def (" __repr__" , &print_xmap_entry)
59- .def (" data" , &get_xmap_entry, return_internal_reference<>())
60- ;
6138
6239 class_<std::map<std::string, X> >(" XMap" )
6340 .def (map_indexing_suite<std::map<std::string, X> >())
You can’t perform that action at this time.
0 commit comments