Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-12-19 06:28:45


Angus Leeming wrote:

> Something like:
>
> #ifdef BOOST_PP_HAS_WARNINGS
> #warning foo bar
> #endif
>
> where BOOST_PP_HAS_WARNINGS is defined in boost/config/compiler/gcc.hpp
>
> ?
>
> Or, given the proposed rewrite of the config stuff have the macro defined
> to 0 for all compilers except gcc and use as #if BOOST_PP_HAS_WARNINGS

I don't think this will help, because the preprocessor seems to scan the
whole file.

---%<---
#if 0
#foo
#endif
--->%---

> cxx -c -std strict_ansi foo.cc
cxx: Warning: foo.cc, line 2: unrecognized preprocessing directive
#foo
-^

Markus


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk