
Server Levent Yilmaz wrote:
Hi all,
Please take a look as this trivial example of file iteration:
[... code]
Perhaps not so obvious many (wasn't to me), that
#define BOOST_PP_FILENAME_1 __FILE__
doesn't work.
Yes, because it /always/ expands to the current file (also in the file loaded with #include BOOST_PP_ITERATE()).
One has to specify (kind of like hardcode) the file's name in there.. Is there some, possibly contrived, way to achieve automation of this?
#include
PS: What an AMAZING library this Boost.Preprocessor is!?
See its successor to be SHOCKED :-) http://sf.net/projects/chaos-pp Regards, Tobias