Casting with Gtk::VariantBase::cast_dynamic
- From: Povietkin Konstantin <povetkin k gmail com>
- To: GTKMM-List <gtkmm-list gnome org>
- Subject: Casting with Gtk::VariantBase::cast_dynamic
- Date: Mon, 28 Mar 2011 12:25:35 +0300
What is the difference between casting of
Glib::Variant< Glib::ustring >.get_type( ).get_string( ) = "s"
and
Glib::Variant< Glib::ustring >.get_type( ).get_string( ) = "o"
In my mind both are strings.
When type is "s" Gtk::VariantBase::cast_dynamic does without error,
when type is "o" throws std::bad_cast.
--
"No Civilization = Freedom"
------------------------------------------------------------------------
Yes, I am a criminal. My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what
they look like.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]