This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Migrating C++ source from Microsoft Windows NT to SCO Unix
On Thu, Mar 29, 2001 at 04:57:57PM +1200, Ross Smith wrote:
> Craig Rodrigues wrote:
> >
> > On Thu, Mar 29, 2001 at 11:19:49AM +1000, Timothy_Ko@nag.national.com.au wrote:
> > >
> > > 2. NabString.h:594: macro `isalnum' used without args
> > >
> > > where we declare as:
> > > virtual const bool NabString::isalnum() const;
> >
> > isalnum() may be implemented as a macro in ctype.h, so implementing
> > it yourself as a function could be a problem.
>
> In C++ it's required to be a function, and having a class member
> function with the same name is legal.
This is a glibc vs. gcc (C++) issue.
The glibc people go by the C standard, and feel free to define
anything in the Standard C library as a macro. This conflicts
with C++, but the glibc project feels this is not their problem,
and is up to the gcc (C++) people to work around.
Don't blame me. ;)
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net