This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with class operators.
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Kristian Kratzenstein <kristian dot kratzenstein at kielnet dot net>, gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Jul 2005 06:44:16 -0500
- Subject: Re: Problem with class operators.
Hi Kristian,
When you have an ambiguous situation like that, you could try this:
b = (ckstring.operator == (pchar));
Or you could remove the implicit convenience cast (operator char*), to
something like this, like was done with std::string for the same reason:
char* CkString::c_str();
HTH,
--Eljay