Mail Archives: djgpp-workers/2000/12/13/06:46:10
On Tue, 12 Dec 2000, Stephen Silver wrote:
Thank you for your report.
> There is a problem with the ctype.h header when used in C++: all 13
> standard functions are defined as macros, which is permissible in C, but
> not in C++.
> In particular, the compiler chokes on expressions such as
> std::tolower('A') because a namespace qualifier cannot be applied to a
> macro.
Then why doesn't the C++ compiler disable the macros in its <ctype>
(or is it <cctype>?) header?
Is the above the only problem with those macros, or are there
additional circumstances where macros don't work. (You seem to be
saying that C++ disallows ctype macros everywhere.)
Also, do the current versions of GCC even support the std namespace
like that?
I wonder how come we never heard such complaints until now? Andris,
could you please shed some light on this?
- Raw text -