Re: Can't process Gtk::Builder::get_widget errors
- From: Frank Naumann <fnaumann boerde de>
- To: Armin Burgmeier <armin arbur net>
- Cc: Саша Иваненко <kitovyj mail ru>, gtkmm-list gnome org
- Subject: Re: Can't process Gtk::Builder::get_widget errors
- Date: Tue, 21 Jul 2009 21:32:31 +0200 (CEST)
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]