From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-05-20 06:21:17
>I'm thinking of submitting a small CPP or C Pre Processor meta programming
>library into Boost. For this reason I have uploaded a trivial demo subset
>the library into the Files section/Vault. You can find the files under the
>CPP folder. The rest of this message contains a motivated example of the
>of a particular feature of the library.
I'm impressed, with one caveat: macros are very very hard to debug if the
compiler decides to choke on something within them - even running the code
through the preporcessor first doesn't alway help as the preproceesed code
all ends up on one line (this is one reason why some compilers choke on
complex preprocessed code BTW - they seem to have a line length limit).
Even so I would like to see more of this, it could be very useful indeed,
not least as the motivating example is in my code ! :-)
- John Maddock
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk