Original Post
When I was using VC++ 6, this line was fine . I can't even do
if ((m_CurrentAnimation != 0) && (m_CurrentAnimation->second->m_bPlaying))
Now, however, VC++ Express doesn't seem to like it at all. It gives me an error for trying to check to make sure that m_CurrentAnimation is actually a valid iterator of std::map
if (m_CurrentAnimation)
without it bitching at me. So my question is what do I do now to make sure I'm about to access a valid iterator? I suppose I could create a flag that lets me know when I have an animation assigned to the iterator, but I'd rather be able to still check it directly.