Casting with Gtk::VariantBase::cast_dynamic



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]