
19 Dec
2005
19 Dec
'05
11:28 a.m.
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