C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Add more methods to std::initializer_list instead of overloading

From: blacktea hamburger <greenteahamburger_at_[hidden]>
Date: Sat, 3 Sep 2022 20:52:28 +0800
But I think il.cbegin() is clearer.
They will also find that only il.begin()/il.end() works, which is weird.

On Sat, Sep 3, 2022 at 8:40 PM Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On Saturday, 3 September 2022 03:05:24 -03 blacktea hamburger via Std-
> Proposals wrote:
> > I do not believe that adding ranges eliminates the need to care about old
> > things. It's also impossible that no one will try il.cbegin() and get a
> > compile error.
>
> Yes, they will. At that point, they'll fix it to write:
>
> std::as_const(il).begin()
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel DCAI Cloud Engineering
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2022-09-03 12:52:55