Re: Why "Access Violent" throw when insert pair object into std::map




"Doug Harrison [MVP]" <dsh@xxxxxxxx> ha scritto nel messaggio
news:luhms357l8ri9sm7m8grkiq8eh1slop3pk@xxxxxxxxxx

As a minor optimization, it's better to use map::value_type than std::pair
or even std::make_pair; it's less error-prone and often shorter to type
[...]
typedef CellMapCollection::value_type CellMapPair;

You are right.

Thanks,
Giovanni


.