Skip to content

Commit

Permalink
Remove deprecated inheritance.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed Dec 11, 2023
1 parent 25b5957 commit 33dcaaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ordered_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ordered_map {
typedef std::reverse_iterator<iterator> reverse_iterator;
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;

class value_compare : std::binary_function<value_type, value_type, bool> {
class value_compare {
friend class ordered_map;

protected:
Expand All @@ -62,7 +62,7 @@ class ordered_map {
};

private:
struct mapcmp : std::binary_function<const K *, const K *, bool> {
struct mapcmp {
COMP comp;
bool operator()(const K *a, const K *b) const { return comp(*a, *b); }
};
Expand Down

0 comments on commit 33dcaaa

Please sign in to comment.