diff --git a/lib/ordered_map.h b/lib/ordered_map.h index ee997b91223..d10e20e5655 100644 --- a/lib/ordered_map.h +++ b/lib/ordered_map.h @@ -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::template rebind_alloc< + using map_alloc = typename std::allocator_traits::template rebind_alloc< std::pair>; using map_type = std::map; map_type data_map; diff --git a/lib/ordered_set.h b/lib/ordered_set.h index c0b4b59db2a..a9dbc2cffb5 100644 --- a/lib/ordered_set.h +++ b/lib/ordered_set.h @@ -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::template rebind_alloc< + using map_alloc = typename std::allocator_traits::template rebind_alloc< std::pair>; using map_type = std::map; map_type data_map;