Commit ec1476b7 by David Neto

Tracking allocator must use const key

Fixes TMap template. This is required to build with newer libc++ versions that have a static assert on const-ness of value_type
parent cd784bc5
...@@ -175,7 +175,7 @@ template <class T> class TList : public std::list<T, pool_allocator<T> > { ...@@ -175,7 +175,7 @@ template <class T> class TList : public std::list<T, pool_allocator<T> > {
}; };
template <class K, class D, class CMP = std::less<K> > template <class K, class D, class CMP = std::less<K> >
class TMap : public std::map<K, D, CMP, pool_allocator<std::pair<K, D> > > { class TMap : public std::map<K, D, CMP, pool_allocator<std::pair<K const, D> > > {
}; };
template <class K, class D, class HASH = std::hash<K>, class PRED = std::equal_to<K> > template <class K, class D, class HASH = std::hash<K>, class PRED = std::equal_to<K> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment