Skip to content
Snippets Groups Projects
Commit ec1476b7 authored by David Neto's avatar David Neto
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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> >
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> >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment