This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

keywords for operators (eg: and for &&) etc


I'm getting a little confused about the ability to use keywords such as
"and" for "&&" and so on.

g++ lets me use it in c++ code if I turn on -ansi which is listed as a C
option. Yet ciso646 defines these keywords using macros only if __cplusplus
is not set.

Ideally I would like to enable the keywords in C++ but I may wish to use
features which cause problems with -ansi (long long has recently been
mentioned as problematic). Can anyone tell me what my mistake is ?

thanks

-- 
Kit Smithers

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]