https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124404
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Status|RESOLVED |ASSIGNED
Resolution|INVALID |---
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 63855
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63855&action=edit
gcc16-pr124404.patch
Actually, std::string also has data() and size() methods and the difference
from std::string_view is guess that it has non-trivial dtor and so is passed by
invisible reference rather than by value.
And std::string works in e.g. static_assert.