29 Nov
2020
29 Nov
'20
11:17 p.m.
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.)