Kod:
for(auto iter = begin(mTextures); iter != end(mTextures); iter++)
{
std::pair<std::string, Texture*>& current = *iter;
delete current.second;
}
Kaze:
Citat:
D:\Development\MedievalSlaughterGame\TextureManage r.cpp|12|error: invalid initialization of reference of type 'std:air<std::basic_string<char>, Texture*>&' from expression of type 'std:air<const std::basic_string<char>, Texture*>'|
|