Date: Thu, 7 Mar 2024 22:54:50 +0000
In C++ there isn't a standard-compliant way of creating named aliases of
c-like array elements. In certain contexts, it is preferred to access these
these array elements with a named identifier that is bounded to that
particular array entry, e.g:
union
{
float my_vec[3];
struct
{
float x, y, z;
};
};
However, anonymous structs/classes are only
c-like array elements. In certain contexts, it is preferred to access these
these array elements with a named identifier that is bounded to that
particular array entry, e.g:
union
{
float my_vec[3];
struct
{
float x, y, z;
};
};
However, anonymous structs/classes are only
Received on 2024-03-07 22:55:02