|
Boost : |
From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2006-04-08 14:18:45
I am wondering if it would be possible to write a computed include macro
that is sufficiently compiler independent?
E.e. given a macro
#define BOOST_PLATFORM_INCLUDE(hdr) ... definition missing ...
which should be usable as:
#include BOOST_PLATFORM(foo.h)
The effect being win32/foo.h included on one linux/foo.h included on
another platform.
I have yet figured out a way that can achieve something close, but gcc
does not allow to use a parameterized macro.
I would be interested if someone has some experience with this.
Roland
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk