on the use of pre- and post- increment iterators, and erasing elements from an STL map
Written by sameer in Uncategorized on Thu 06 March 2008. Tags: cplusplus, iterators, programming,
After spending a tense 2-3 hours trying to track down a segmentation fault, here's what I found. The explanation is subtle and obscure enough to be documented in every text book that ever claims to teach "proper" C/C++ programming practices! Maybe they already do that, and I didn't happen …