6 Oct
2020
6 Oct
'20
6:06 p.m.
Antony Polukhin wrote:
I think we took the wrong turn in C++17, when allowed inheritance for aggregates.
Nothing wrong with that IMO. Structured bindings just deliberately break this case for no reason at all. "Otherwise, all of E’s non-static data members shall be direct members of E or of the same base class of E"