Re: [gtkmm] get method inconsistencies



> > error.h              domain()    -> get_domain()
> >                      code()      -> get_code()
> >                      what()      -> get_message()    !! more
descriptive
>
> what() is meant to be the same as std::exception::what(). The others
> should probably be consistent with that.

STL's exceptions' what() return char* while Glibmm returns Glib::ustring.
It is not a big problem, but it may be a bit confusing. I myself had had a
situation where it's been a problem.
Perhaps we could have const char* what() and Glib::ustring get_message()
or something... But it is just cosmetics.

Jarek


----------------------------------------------------------------------
Rzetelne zrodlo informacji... >>> http://link.interia.pl/f1631





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