This is an archive of the discontinued LLVM Phabricator instance.

Proposed Fix for LWG 2059: C++0x ambiguity problem with map::erase
ClosedPublic

Authored by mclow.lists on Apr 30 2015, 11:40 AM.

Diff Detail

Event Timeline

mclow.lists retitled this revision from to Proposed Fix for LWG 2059: C++0x ambiguity problem with map::erase.
mclow.lists updated this object.
mclow.lists edited the test plan for this revision. (Show Details)
mclow.lists added a reviewer: EricWF.
mclow.lists added a subscriber: Unknown Object (MLST).
EricWF edited edge metadata.Apr 30 2015, 6:43 PM

Why were no erase methods added for set, multiset, unordered_set, and unordered_multiset?

EricWF accepted this revision.Apr 30 2015, 6:48 PM
EricWF edited edge metadata.

Why were no erase methods added for set, multiset, unordered_set, and unordered_multiset?

Because const_iterator and iterator are the same type.

This patch LGTM but I would remove the __cplusplus >= 201402L blocks around the tests since the fix is applied in all standard versions.

This revision is now accepted and ready to land.Apr 30 2015, 6:48 PM
mclow.lists closed this revision.May 18 2015, 11:33 AM

Committed as r236950