18 Oct
2021
18 Oct
'21
12:57 a.m.
On Sun, Oct 17, 2021 at 5:47 PM Andrey Semashev via Boost
Making your libraries explicitly support std::string_view, in addition to boost::string_view, is one option.
Do you perhaps have some example code to share? Peter gave a function signature:
The scenario being addressed here is that of a Boost library that does not require C++17, yet its users want to use std::string_view when interacting with the library. That is, the library API is
boost::string_view api_function( boost::string_view str );
What would this look like with "explicitly supporting std::string_view in addition to boost::string_view" ? Thanks