Skip to content

Commit

Permalink
Make it build with C++17, not just C++20
Browse files Browse the repository at this point in the history
  • Loading branch information
vlstill committed Jan 29, 2024
1 parent 765efa1 commit a3434a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ordered_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ordered_map {
COMP comp;
bool operator()(const K *a, const K *b) const { return comp(*a, *b); }
};
using map_alloc = std::allocator_traits<ALLOC>::template rebind_alloc<
using map_alloc = typename std::allocator_traits<ALLOC>::template rebind_alloc<
std::pair<const K *const, list_iterator>>;
using map_type = std::map<const K *, list_iterator, mapcmp, map_alloc>;
map_type data_map;
Expand Down
2 changes: 1 addition & 1 deletion lib/ordered_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ordered_set {
COMP comp;
bool operator()(const T *a, const T *b) const { return comp(*a, *b); }
};
using map_alloc = std::allocator_traits<ALLOC>::template rebind_alloc<
using map_alloc = typename std::allocator_traits<ALLOC>::template rebind_alloc<
std::pair<const T *const, list_iterator>>;
using map_type = std::map<const T *, list_iterator, mapcmp, map_alloc>;
map_type data_map;
Expand Down

0 comments on commit a3434a0

Please sign in to comment.