Boost logo

Boost Users :

Subject: [Boost-users] [Preprocessor] Is it possible to expand recursively?
From: TONGARI (tongari95_at_[hidden])
Date: 2011-07-17 09:21:08


I'd like to have a macro like:


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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at