Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2022-08-21 15:06:18


Vinnie Falco wrote:
> > URL should be a "Keep It Simple" type, accessible to
> > C++ beginners, with straightforward lifetime semantics.
>
> std::string_view is C++17, are we saying now that Boost libraries should avoid
> some C++ features to appease beginners?

Lifetime errors are not only made by beginners. They are
a regular occurrence in the Clang code base, for instance,
and I don't think the people working on and contributing
to Clang are beginners.

Returning views is basically a trap that's going to get
everyone earlier or later, no matter how experienced.


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