I have tried to create a new class, that inherits from std::string, because I want to add additional functionality to the string class.
I have done like this :
class CMyString : public std::string
But I loose some of the operators (I don't know if I loose them all) like the assign operator that makes
myString = "stringdata";
possible. It seems like i loose the operators from std::basic_string, that std::string inherit from.
The question is, can I somehow inhereit from std::string, without loosing f.ex the assign operator ?
I wouldn't like, to override all the needed operators, but still want to be able to use the CMyString class as if it was an std::string.