"wazz" <[EMAIL PROTECTED]> writes:

> I'm trying to define a simple class which extends std::string

std::string wasn't designed to serve as a non-private base class ...


> , as well as provides a method for C-style typecast.

... and, as a rule, conversion operators are a bad idea because of the
surprising behavior they often cause. There's a reason why c_str() is
called c_str() and not operator char const *().
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to