On Mon, 2015-07-20 at 13:43 +0100, Daniel Hams wrote:
[snip]
> Glib::RefPtr<Glib::Error> GLArea::get_error() const;
[snip]

We now have std::shared_ptr in C++11.

However, maybe people would prefer throw_if_error() with try/catch
instead of lots of this:

if(auto derived = std::dynamic_pointer_cast<DerivedException>(error))
{
  ...
}
else if(auto other_derived =
std::dynamic_pointer_cast<OtherDerivedException>(error)
{
  ...
}
else
{
  ... //default
}


-- 
Murray Cumming
[email protected]
www.murrayc.com


_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to