Compat template type ambiguity

This commit is contained in:
Christian Semmler 2024-02-22 16:40:24 -05:00
parent e7bb73b527
commit a11ecd6188

View File

@ -41,7 +41,11 @@ class LegoContainer {
public: public:
virtual ~LegoContainer() virtual ~LegoContainer()
{ {
#ifdef COMPAT_MODE
typename LegoContainerInfo<T>::iterator it;
#else
LegoContainerInfo<T>::iterator it; LegoContainerInfo<T>::iterator it;
#endif
for (it = m_map.begin(); it != m_map.end(); it++) { for (it = m_map.begin(); it != m_map.end(); it++) {
// DECOMP: Use of const_cast here matches ~ViewLODListManager from 96 source. // DECOMP: Use of const_cast here matches ~ViewLODListManager from 96 source.
const char* const& key = (*it).first; const char* const& key = (*it).first;
@ -55,7 +59,11 @@ class LegoContainer {
inline T* Get(const char* p_name) inline T* Get(const char* p_name)
{ {
LegoContainerInfo<T>::iterator it = m_map.find(p_name); #ifdef COMPAT_MODE
typename LegoContainerInfo<T>::iterator it;
#else
LegoContainerInfo<T>::iterator it;
#endif
if (it != m_map.end()) { if (it != m_map.end()) {
return (*it).second; return (*it).second;
} }