mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CUtlRBTree: Fix ambiguous overload compiler errors
Ambiguous overload caused by having 2 constructors who's parameters have types that are equal in size. Since these container size types have been explicitly converted to 64bits to align it with the code compiled in the engine, the compiler no longer knows which constructor to call. Added explicit casts to solve the problem. This error was triggered by declaring: static CUtlMap<const char*, int> s_ConVarFlags(DefLessFunc(const char*));
This commit is contained in:
parent
87958822b9
commit
ed1b365c12
@ -397,7 +397,7 @@ inline CUtlRBTree<T, I, L, M>::CUtlRBTree(int64 growSize, int64 initSize, const
|
||||
|
||||
template < class T, class I, typename L, class M >
|
||||
inline CUtlRBTree<T, I, L, M>::CUtlRBTree(const LessFunc_t& lessfunc) :
|
||||
m_Elements(0, 0),
|
||||
m_Elements((int64)0, (int64)0),
|
||||
m_LessFunc(lessfunc),
|
||||
m_Root(InvalidIndex()),
|
||||
m_NumElements(0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user