Change insert/erase as specified in n2369.

[SVN r39949]
This commit is contained in:
Daniel James committed 2007-10-11 22:47:17 +00:00
1 parent ba7d4151c9
commit 2cdb800ec3
2 files changed
+120 -273

No files matched your search

-13
View File
@@ -120,17 +120,4 @@ should probably change it to a slow swap.
The current proposal is that insert, erase and rehash are stable - so they are here.
[h3 [@http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#528
528. TR1: issue 6.19 vs 6.3.4.3/2 (and 6.3.4.5/2)]]
In the current implementation, for `unordered_set` and
`unordered_multiset`, `iterator` and `const_iterator` have the same type and
`local_iterator` and `const_local_iterator` also have the same type. This makes
it impossible to implement the header exactly as described in the synopsis, as
some member functions are overloaded by the same type.
The proposed resolution is to add a new subsection to 17.4.4:
[:An implementation shall not supply an overloaded function signature specified in any library clause if such a signature would be inherently ambiguous during overload resolution due to two library types referring to the same type.]
So I don't supply the `iterator` overloads.
[endsect]