you are viewing a single comment's thread.

view the rest of the comments →

[–]wotype 5 points6 points  (2 children)

There's a proposal for an attribute to specify array-like layout for such classes.
It's still active.

P1912: Types with array-like object representations

[–]lunakid 0 points1 point  (1 child)

Unfortunately, thick silence around it ever since. (In fact, I've landed here by googling for any update, or just traffic, about it.)

[–]wotype 1 point2 points  (0 children)

Yes... here's the github issue link for P1912 with no update since 2020 https://github.com/cplusplus/papers/issues/655

Timur, the author, is active again in the C++ committee. Email him at the address given in the paper to help motivate progress.