summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/debug/multiset.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/debug/multiset.h')
-rw-r--r--libstdc++-v3/include/debug/multiset.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/include/debug/multiset.h b/libstdc++-v3/include/debug/multiset.h
index 76300cd8829..9c950a1d0c2 100644
--- a/libstdc++-v3/include/debug/multiset.h
+++ b/libstdc++-v3/include/debug/multiset.h
@@ -201,7 +201,7 @@ namespace __debug
#endif
iterator
- insert(iterator __position, const value_type& __x)
+ insert(const_iterator __position, const value_type& __x)
{
__glibcxx_check_insert(__position);
return iterator(_Base::insert(__position.base(), __x), this);
@@ -234,7 +234,7 @@ namespace __debug
#ifdef __GXX_EXPERIMENTAL_CXX0X__
iterator
- erase(iterator __position)
+ erase(const_iterator __position)
{
__glibcxx_check_erase(__position);
__position._M_invalidate();
@@ -267,14 +267,14 @@ namespace __debug
#ifdef __GXX_EXPERIMENTAL_CXX0X__
iterator
- erase(iterator __first, iterator __last)
+ erase(const_iterator __first, const_iterator __last)
{
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 151. can't currently clear() empty container
__glibcxx_check_erase_range(__first, __last);
while (__first != __last)
this->erase(__first++);
- return __last;
+ return __last; // iterator == const_iterator
}
#else
void