diff --git a/include/fast_io_dsal/impl/string.h b/include/fast_io_dsal/impl/string.h index 326ee865..5c1d2de1 100644 --- a/include/fast_io_dsal/impl/string.h +++ b/include/fast_io_dsal/impl/string.h @@ -1468,7 +1468,7 @@ class }; template <::std::integral chtype, typename allocator1, typename U> -inline constexpr void erase(::fast_io::containers::basic_string const &c, U const &value) +inline constexpr void erase(::fast_io::containers::basic_string &c, U const &value) { auto it = ::std::remove(c.begin(), c.end(), value); auto r = c.end() - it; @@ -1477,7 +1477,7 @@ inline constexpr void erase(::fast_io::containers::basic_string -inline constexpr void erase_if(::fast_io::containers::basic_string const &c, Pred pred) +inline constexpr void erase_if(::fast_io::containers::basic_string &c, Pred pred) { auto it = ::std::remove_if(c.begin(), c.end(), pred); auto r = c.end() - it;