8 Feb
2024
8 Feb
'24
3:10 p.m.
Andrey Semashev wrote:
I'll add that this will not be a free transition for other libraries that support or use string views. For example, in Boost.Log I support boost::string_view and boost::string_ref but not boost::core::string_view. Not that it should be difficult to switch, but it's work. It's more complicated if the library or tool is unmaintained.
core::string_view is intended to be the single type you need to support. It converts from (and to) boost::string_view in addition to std::string_view. (Not boost::string_ref though, which should be obsolete at this point. And deprecated.)