Original Post
hi,
I''ve some stupid question about std::map
this is my map definition :
typedef map TextureMap;
TextureMap m_TextureMap;
so i want delete all cTexture like these :
VOID DeleteTextureMap (VOID)
{
for (TextureMap::iterator i=m_TextureMap.begin (); i!=m_TextureMap.end (); i++)
{
delete (*i); // BUT this won''t work !!!
}
m_TextureMap.clear ();
}
How does it corectly work???
Thx Imp
bugs are uncommented features...