Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2021-10-18 00:57:24


On Sun, Oct 17, 2021 at 5:47 PM Andrey Semashev via Boost
<boost_at_[hidden]> wrote:
> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk