I declared a
Code: Select all
core::map<core::stringw, core::map<core::stringw, core::stringw> > m_data;
Code: Select all
const core::map<core::stringw, core::stringw>& set = m_data[group];
core::stringw retValue = set[key];
I guess this happens because of the const qualifier but the reference needs to be const qualified.INIFile.hpp:86: error: passing `const irr::core::map<irr::core::stringw, irr::core::stringw>' as `this' argument of `irr::core::map<KeyType, ValueType>::AccessClass irr::core::map<KeyType, ValueType>::operator[](const KeyType&) [with KeyType = irr::core::stringw, ValueType = irr::core::stringw]' discards qualifiers
Any help is welcome
[EDIT]
I found a workaround using a pointer
Code: Select all
core::map<core::stringw, core::map<core::stringw, core::stringw>* > m_data;