C++11: Using noexcept



I guess we could use noexcept on lots of our class methods -
particularly simple boxed types such as Gdk::Rectangle, but maybe even
anything that doesn't wrap a GError in an exception.

Using noexcept seems to be more worthwhile than using throw() was,
letting the compiler optimize more.

It looks like adding noexcept doesn't break ABI. Does anyone know
otherwise?

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com




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