Boost logo

Boost :

From: Glen Fernandes (glen.fernandes_at_[hidden])
Date: 2022-06-04 21:44:06


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/utilities/string_view.html
>
> 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.hpp
>
> 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


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