RE: [gtkmm] Glib::Module API issues



> 
> As Paul just pointed out, constructors can throw exceptions (phew, that
> sucks otherwise).

You bet they can. It's destructors that can but shouldn't. Shudder.

The simple case

of

Test::Test(const int size)
{
	my_array = new char[size];
}
 

will throw a memory exception if size it too large. 

Nick




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