Is there a way to define how to access an object(struct/union) when no member is specified? For example, could I define a struct ...
... and define that c should be accessed as an int when no member is specified, effectively making the a 3 int struct? The difference between this and anonymous objects is that I want a and b to still be accessed as members, like c.a and c.b.Code:struct{ int a; int b; }c;
No, I CAN'T use C++.