зеркало из https://github.com/stride3d/xkslang.git
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
This commit is contained in:
Родитель
cd784bc561
Коммит
ec1476b706
|
@ -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> >
|
||||
|
|
Загрузка…
Ссылка в новой задаче