Quote Ad: #2 rip-off    Moderators   -  Reputation: 3351 Like 0 Likes Like Posted 07 June 2008 - 01:34 PM Does your Model class follow the rule of three ? Incidentally: 1) Prefer using the std::make_pair helper function than calling the std::pair constructor. Let the compiler make the type inference: models.insert(std::make_pair(filename, tempmodel)); 2) You