This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
cv-quals lack an intervening 'const'
- To: cygwin at sourceware dot cygnus dot com
- Subject: cv-quals lack an intervening 'const'
- From: Donald Brinkman <brinkman at omi dot com>
- Date: Thu, 07 Dec 2000 16:21:18 -0500
Hello all . . .
I have been given the task of porting a small project from an IRIX
environment into a visual c++ compatible library. To accomplish this I
decided to use Cygwin, since it has such nice utilities for creating DLLs.
Everything has been going fine, with only a few changes here and there,
until I stopped dead on this problem. Given the member function:
const Foo** FooBar::getA() const
{
return ( A )
}
where A is a const Foo**
I get the following message:
Return to const Foo** from Foo **const adds cv-quals without intervening
'const'.
Now, please, can someone tell me just what a cv-qual is and why the compiler
complains about this on Cygwin with gcc but not on IRIX with cc? Any help
would be greatly appreciated.
Donald Brinkman
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com