On Sat, Jun 4, 2022 at 5:23 PM Andrzej Krzemienski wrote:
Aliases for standard types, such as string_view
https://master.url.cpp.al/url/ref/boost__urls__string_view.html, use their Boost equivalents.
After reading this, I expected that Boost.URL would use boost::string_view from Boost.Utility library: https://www.boost.org/doc/libs/1_79_0/libs/utility/doc/html/utility/utilitie...
But instead, it uses boost::core::string_view, which is an implementation detail from Boost.Core library: https://github.com/CPPAlliance/url/blob/master/include/boost/url/string_view...
Again, this is news for me that Boost has two implementations of string_view. Why? Second, I do not think that Boost.URL should rely on the implementation details of Boost.Core. A better alternative would be to use the official boost::string_view from Boost.Utility. Or is there a good reason not to?
The mailing list thread in which Core's string_view was discussed is: https://lists.boost.org/Archives/boost/2021/10/252092.php Originally it was not meant to be in the 'detail' namespace. Glen