Problem with class operators.

Eljay Love-Jensen eljay@adobe.com
Mon Jul 25 11:44:00 GMT 2005


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




More information about the Gcc-help mailing list