libstdc++: Fix test for old string ABI
authorJonathan Wakely <jwakely@redhat.com>
Thu, 30 Jul 2020 15:04:59 +0000 (16:04 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 30 Jul 2020 15:04:59 +0000 (16:04 +0100)
commit561a19c3011f7bde3a41f2a27ea979118e3a2dff
tree93f8e0cc93ada2dc3afec63d1ba01d21b73457e4
parent4451035492fe36fd29099a23d51d1e3eb3c2eb61
libstdc++: Fix test for old string ABI

The COW string doesn't accept const_iterator arguments in insert and
related member functions. Pass a mutable iterator instead.

libstdc++-v3/ChangeLog:

* testsuite/20_util/from_chars/4.cc: Pass non-const iterator
to string::insert.
libstdc++-v3/testsuite/20_util/from_chars/4.cc