P
Paulo da Silva
Hi.
I need a class with several string methods. I don't want to use the
string class itself because in future I may want to redefine it to use
other ways to implement the same (needed) methods but with a different
behaviour.
I tried
class myClass: public string
{ public:
using string::string;
}
This seems not to be recognized by g++.
What is the minimum code to have all string methods available in
myClass? Do I have to redefine all constructors I need to use?
Thanks for any help.
I need a class with several string methods. I don't want to use the
string class itself because in future I may want to redefine it to use
other ways to implement the same (needed) methods but with a different
behaviour.
I tried
class myClass: public string
{ public:
using string::string;
}
This seems not to be recognized by g++.
What is the minimum code to have all string methods available in
myClass? Do I have to redefine all constructors I need to use?
Thanks for any help.