Fix for PR18735 - self-assignment for map/multimap gives incorrect results in C++03