On 11/4/2025 5:05 PM, Klemens Morgenstern via Boost wrote: [...]
Why don't we have a string_view in boost.compat? if we had a compat:;string_view that is identical to the C++17 implementation. We then have one standard with two implementations and not three slightly different string_views.
Once compat adds this the consuming libraries (e.g. boost.mysql or boost.url) can use compat and the other implementations just become a relic that isn't used within boost anymore. Boost.Compat might be the ideal place for this (as it perfectly fits "Boost.Compat is a repository of C++11 implementations of standard components added in later C++ standards.").
But I suspect a string_view in Compat should necessarily have a Traits template argument? -- Gennaro Prota <https://prota.dev>