Red Hat Bugzilla – Bug 83018
The <cctype> header is wrong and doesn't work
Last modified: 2008-05-01 11:38:05 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021128
Description of problem:
Essentially, the <cctype> header does not put the things that should be there
(isdigit, toupper, etc) into the std namespace. For an example of how to do this
correctly, look at the cctype header included in GCC 3.2.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Attempt to compile this code:
char c = 'x';
2. It won't compile with GCC 2.96, but will with 3.0.4, 3.1, 3.2, and any other
ISO C++ compilant compiler/library.
Actual Results: Won't compile because of the header problem.
Expected Results: Should compile.
Check the GCC 3.2 cctype header for what should be a drop-in replacement.
That's expected. GCC 3.0 was the first one to honour std namespace.