Hello,
I'd like to have a macro like:
BUILD_HIERARCHY
(a,
(b,)
(c,
(d,)
(e,)
)
)
which should expand to:
struct a {};
struct b: a {};
struct c: a {};
struct d: c {};
struct e: c {};
Is this possible at all?
I have tried but with no luck, if this is impossible, please tell me so.
TIA