Re: Can't process Gtk::Builder::get_widget errors



Hello!

Are you sure that dynamic_cast crashes when casting from 0? This seems to work for me in this testcase:

Yes, dynamic_cast<...>(0) is defined and allowed behaviour and even mentioned on the MSDN help:

"... A null pointer value is converted to the null pointer value of the destination type by dynamic_cast. ..."

http://msdn.microsoft.com/en-us/library/cby9kycs%28VS.80%29.aspx


Regards,
Frank


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