[PATCH] Proposed Fix for LWG 2059: C++0x ambiguity problem with map::erase

Eric Fiselier eric at efcs.ca
Thu Apr 30 18:49:01 PDT 2015


In http://reviews.llvm.org/D9408#164597, @EricWF wrote:

> 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.


http://reviews.llvm.org/D9408

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list