Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2020-11-29 23:17:36


On 30/11/2020 6:21 am, Peter Dimov wrote:
> Jeff Garland wrote:
>> > The answer here is to take a string_view that is constructible from
>> all > StringLike types, including std::string_view and
>> boost::string_view.
>>
>> Sure, but that type is going to need to account for c++17 versus
>> earlier versions.
>
> For this specific use, it doesn't need to. It can just match against a
> StringLike concept, as I said.

Except that you can't use concepts in a compiled library, only in a
header-only one. (Or it still requires you to write that concrete type
conversion.)


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