Date: Fri, 11 Mar 2022 13:23:03 +0100
On 11/03/2022 01:00, Lénárd Szolnoki via Std-Proposals wrote:
>
>
> I believe it's aligned for sequence containers, and subscript returns
> `reference` for a non-const container there, regardless of value category.
I understand that. I was just wondering if, historically, breaking
semantics w.r.t. plain arrays (and aligning on existing containers
instead) has always been a design choice or it "just happened" because
of multiple papers in flight at the same time.
* array was added to TR1 in ~2003 (N1548, N1475)
* then got merged into the draft in ~2006 (N2003)
* ref qualifiers on *this was proposed in ~2005 (N1821)
My 2 c,
>
>
> I believe it's aligned for sequence containers, and subscript returns
> `reference` for a non-const container there, regardless of value category.
I understand that. I was just wondering if, historically, breaking
semantics w.r.t. plain arrays (and aligning on existing containers
instead) has always been a design choice or it "just happened" because
of multiple papers in flight at the same time.
* array was added to TR1 in ~2003 (N1548, N1475)
* then got merged into the draft in ~2006 (N2003)
* ref qualifiers on *this was proposed in ~2005 (N1821)
My 2 c,
-- Giuseppe D'Angelo
Received on 2022-03-11 12:23:09