I have an std::map
mapping to objects which don't have default constructors.
I need an iterator to iterate over the map, but the iterator needs a default constructor, how do I solve this?
std::map<MyClass1, MyClass2> MyMap; //No default constructor needed
std::pair<MyClass1, MyClass2> MapIterator; //Need default constructor to construct std::pair