Hi all, I have this class in my code:
class Mystring {
public:
char *s;
Mystring(const char *);
Mystring();
~Mystring(){}
Mystring operator=(const char* str)
{
strcpy (s, str);
return *this;
}
operator char *()//Conversion operator
{
return this->s;
}
//...
};
1) I would like to convert from Mystring* to Mystring** using a '=' operator. for this line to work:"
Mystring* p = new Mystring;
Mystring** pp = p;
2) And to convert from Mystring* to char* using a conversion operator (I already have one in my class).
I'm having difficulties with both issues, Thanks for any help!!
BanKuZ

