diff --git a/lib/ordered_map.h b/lib/ordered_map.h index 1647d5429c1..8dc2801433b 100644 --- a/lib/ordered_map.h +++ b/lib/ordered_map.h @@ -48,7 +48,7 @@ class ordered_map { typedef std::reverse_iterator reverse_iterator; typedef std::reverse_iterator const_reverse_iterator; - class value_compare : std::binary_function { + class value_compare { friend class ordered_map; protected: @@ -62,7 +62,7 @@ class ordered_map { }; private: - struct mapcmp : std::binary_function { + struct mapcmp { COMP comp; bool operator()(const K *a, const K *b) const { return comp(*a, *b); } };