diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-20 19:34:58 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-20 19:34:58 +1100 |
commit | e6f96cb2bd94df5bc05d763892805d4c1ced2fa8 (patch) | |
tree | e108aa02fa7e46453628119310c8bf17e83742b8 /source/core/StarOrderedSet.hpp | |
parent | 43b2fa53e7a6ba8bc220306fbe9bbda00076a520 (diff) |
std::allocator::rebind is deprecated
Clang should no longer scream
Diffstat (limited to 'source/core/StarOrderedSet.hpp')
-rw-r--r-- | source/core/StarOrderedSet.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarOrderedSet.hpp b/source/core/StarOrderedSet.hpp index abfb19b..4645a38 100644 --- a/source/core/StarOrderedSet.hpp +++ b/source/core/StarOrderedSet.hpp @@ -14,10 +14,10 @@ class OrderedSetWrapper { public: typedef Value value_type; - typedef LinkedList<value_type, typename Allocator::template rebind<value_type>::other> OrderType; + typedef LinkedList<value_type, typename std::allocator_traits<Allocator>::template rebind_alloc<value_type>> OrderType; typedef Map< std::reference_wrapper<value_type const>, typename OrderType::const_iterator, Args..., - typename Allocator::template rebind<pair<std::reference_wrapper<value_type const> const, typename OrderType::const_iterator>>::other + typename std::allocator_traits<Allocator>::template rebind_alloc<pair<std::reference_wrapper<value_type const> const, typename OrderType::const_iterator>> > MapType; typedef typename OrderType::const_iterator const_iterator; |