Using std string when ustring is not available.
- From: Hannu Vuolasaho <vuokko msn com>
- To: <gtkmm-list gnome org>
- Subject: Using std string when ustring is not available.
- Date: Sun, 20 May 2012 17:15:11 +0300
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:
#ifdef HAVE_GTKMM
class myString: public ustring{
....
#else
class myString:public std::string{
...
#endif
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]