13 Dec
2025
13 Dec
'25
9:35 a.m.
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. Maybe you need it in order to interoperate with other code bases that use boost::string_view, but not with Boost. To interoperate with the stdlib, having a boost::core::string_view overload should be enough; that's what it was designed to do.