Using std string when ustring is not available.

Hello everyone!

I'm thinking of supporting UTF-8 in my small console application and ustring would be quite useful and using gtkmm there is possibility to add GUI also. However some systems might not have gtkmm installed and in that case I'd like to fall back to std string.

Is this behaviour achievable some kind of wrapper class easily?
I'm thinking something like:
class myString: public ustring{
class myString:public std::string{
and myString would act like stdstring or ustring.
Or what kind solution would be good?

best regards,
Hannu Vuolasaho

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]