On 12/13/25 10:35, Peter Dimov via Boost wrote:
Rainer Deyke wrote:
In practice, I now have three overloads for some of my functions: std::string_view, boost::string_view, and boost::core::string_view. I need std::string_view in order to interoperate with the standard library. I need boost::string_view to interoperate with Boost.
Almost nothing in Boost uses boost::string_view, so you don't need it in order to interoperate with Boost.
This does seem to be the case now. My code still works if I remove the boost::string_view overloads. It wasn't the case at the time when I wrote the overloads.
To interoperate with the stdlib, having a boost::core::string_view overload should be enough; that's what it was designed to do. This, on the other hand, does not seem to be the case. I get compile errors if I remove either the std::string_view or the boost::core::string_view overloads.
-- Rainer Deyke - rainerd@eldwood.com