Support for "maybe" containers (nullable data types)
Submitted by Markus Elfring
Link to original bug (#694595)
Description
The structure "GVariant" provides an interface for nullable data types. http://developer.gnome.org/glib/2.35/gvariant-text.html#gvariant-text-maybe-types
A mapping seems to be missing in the class library so far. http://developer.gnome.org/glibmm/2.34/classGlib_1_1VariantBase.html https://mail.gnome.org/archives/gtkmm-list/2011-October/msg00051.html http://article.gmane.org/gmane.comp.gnome.gtkmm/25571
I imagine that an additional container type would be needed for the safe creation of "Maybe Types".
It will also be eventually needed to reset an object to "nothing" after it was created with such a data type and a specific value. Would you like to reuse any implementation from a function like "g_variant_new_nothing_from_type"? https://mail.gnome.org/archives/gtk-devel-list/2013-February/msg00124.html http://article.gmane.org/gmane.comp.gnome.gtk%2B.devel.general/23167
Version: 2.35.x