This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]