Re: [Re: [libxml++] UTF8 support]



Ole Laursen <olau hardworking dk> wrote:
> Perhaps this idea is better. If there is an implicit
> conversion to char*, it will interface nicely with both std::string
> and Glib::ustring.

I asumme you mean "const char*".

Implicit conversions to const char* lead to implicitly orphaned pointers. I
believe that's why std::string has no implcit conversion to const char*.
Glib::ustring tries to mimick the std::string API as much as possible, as we
asssume that the designers of std::string know what they are doing.


Murray Cumming
murrayc usa net
www.murrayc.com





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