Re: Clarification for the application of GVariant/Glib::Variant maybe types
- From: Murray Cumming <murrayc murrayc com>
- To: Markus Elfring <Markus Elfring web de>
- Cc: José Alburquerque <jaalburquerque gmail com>, gtkmm-list gnome org
- Subject: Re: Clarification for the application of GVariant/Glib::Variant maybe types
- Date: Fri, 07 Oct 2011 12:54:23 +0200
On Fri, 2011-10-07 at 09:29 +0200, Markus Elfring wrote:
> By which (member) function can such a variable be marked to contain an
> unknown
> value?
> (Do I overlook a programming interface once more?)
> http://developer.gnome.org/glibmm/2.30/classGlib_1_1VariantBase.html
It looks like we don't have any API yet to create a "maybe"
Glib::Variant. The C API is g_variant_new_maybe() but we don't seem to
use that yet. I don't know how we would support this in a template
specialization.
Note that GVariant generally doesn't have set functions. It's meant to
be an invariant type. That probably makes it unsuitable for general use
anyway.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]