Boost logo

Boost :

From: Zach Laine (whatwasthataddress_at_[hidden])
Date: 2019-08-11 15:17:05

On Sun, Aug 11, 2019 at 5:28 AM Mike via Boost <boost_at_[hidden]>

> I for one would be very happy to see this utility in boost.
> Just wondering: Would it be possible to extend this lib with a
> range_facade CRTP? Not sure if/how this could work in the general
> case, but for containers / views that represent a contiguous range
> of elements (array, vector, span, string, string_view) it has saved me
> a ton of typing, testing and probably also bugs over the years.

This is a reasonable request, and one that I had already considered. It
would require maintaining a whole second header, so I'm not sure it's worth
it. :) I don't think this would grow the library too much, but I do want
to carefully consider what a range_facade could and should do. I already
know the answer for iterator_facade. IOW, I'll probably get to it, if/when
that consideration is fruitful.

> However, if I had to choose, I'd prefer a simple iterator_facade library
> as proposed by you over a big, complex solution that tries to solve
> everything for everyone (that could be a separate library).



Boost list run by bdawes at, gregod at, cpdaniel at, john at