Boost logo

Boost Users :

From: Andreas Sæbjørnsen (andreas.saebjoernsen_at_[hidden])
Date: 2006-05-23 19:52:08

Using the 'samples/cpp_tokens' example preprocessor with the following code:
    #define true 1
    #define false 0
gives the following error:

test.C(1): error: ill formed preprocessor directive: #define

Preprocessing the same file with 'cpp' give no error. If any of the two
lines in the
file is removed the other line will cause an error. I guess the error occurs
'true' is not an T_IDENTIFIER, but a T_TRUE. Could you imagine a clean fix
to this issue?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at