VS2010 vector's iterator incompatible
- by Ernesto Rojo Jr
I just updated to VS2010 from 2008. Now i'm getting an exception from vector iterators. Here's a code snippet that shows the issue.
std::vector<CButton*> m_objButtons;
for (std::vector<CButton*>::iterator i = m_objButtons.begin();
i != m_objButtons.end();
++i)
{}
I get the debug message "vector iterators incompatible". Anyone run into this too?