by andycaisc » Thu Mar 08, 2012 3:45 am
typedef HashMap<int, int=""> IntMap;
IntMap::Iterator it ;
it = hm.begin(); //---here will make crash in visual studio 2010
by Royce » Thu Jul 05, 2012 9:04 am
I get this same thing. On VS2010, HashMAP::begin() causes a null de-reference deep in the call stack, xutility I think, even if the HashMap has elements. It seems like it is associated with operator= for iterators.
That exact same code on VS2003, on the other hand, works just fine. (I don't have 2005 or 2008 or I would try them too).