string::find(string_view) is missing from <debug/string>
Jonathan Wakely
jwakely@redhat.com
Fri Jun 24 10:07:39 GMT 2022
On Fri, 24 Jun 2022 at 08:45, Frederick Virchanza Gotham via Libstdc++
<libstdc++@gcc.gnu.org> wrote:
>
> I was hoping to replace "std::string" with "__gnu_debug::string" in my
> program, but when I do so, it no longer compiles.
>
> It fails to compile because "__gnu_debug::string" is missing the
> member function:
>
> template <class StringViewLike>
> constexpr size_type find( StringViewLike const &t, size_type pos =
> 0u ) const noexcept;
>
> This member function was added in C++17. Are there any intentions to
> add it to __gnu_debug?
There are probably other missing C++17 and C++20 changes too. It seems
nobody else is using that type so if you care about it, I would
encourage you to contribute to it.
More information about the Libstdc++
mailing list