C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Subscript aliasing

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Fri, 8 Mar 2024 00:21:20 +0100
On 08/03/2024 00:19, Jan Schultke via Std-Proposals wrote:
> You can have your cake and eat it with existing features.
>
> Make three members float x, y, z, then define an operator[].

The missing building block is then interconvertibility between the
struct and an array of floats. See also P1912:
https://wg21.link/p1912r1

Thank you,
-- 
Giuseppe D'Angelo

Received on 2024-03-07 23:21:23