The __cow_string used with -D_GLIBCXX_USE_CXX11_ABI=0, does not provide
erase accepting const_iterator, so we adjust __detail::__erase.if
(introduced in r16-6889-g3287) to call __cont.erase with mutable iterators.
libstdc++-v3/ChangeLog:
* include/bits/erase_if.h (__detail::__erase_if): Pass mutable
iterators to __cont.erase.
std::move(__pred));
if (__removed != __end)
{
- __cont.erase(__niter_wrap(__cont.cbegin(), __removed),
- __cont.cend());
+ __cont.erase(__niter_wrap(__cont.begin(), __removed),
+ __cont.end());
return __osz - __ucont.size();
}