Subject: Re: [boost] string_view versus string_ref
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2017-07-06 13:53:09
On Thu, Jul 6, 2017 at 12:46 AM, Andrzej Krzemienski via Boost <
> Hi Everyone,
> I would like to understand the situation with these two templates:
> basic_string_view and basic_string_ref.
> The official, advertised library is string_ref:
> At the same time we have string_view:
> But the latter is never mentioned in the documentation, except in
> (see http://www.boost.org/users/history/version_1_61_0.html)
> The support for boost::basic_string_ref and its specializations is
> > deprecated; users are encouraged to switch to boost::basic_string_view.
> > The support for boost::basic_string_ref will be removed in future
> > releases.
> My question: is there any official position of Boost about having these two
Yes. boost::string_view is the preferred solution; it is closer to
std::string_view, and it has significantly more constexpr support.
I'd like to remove boost::string_ref at some point in the future.