Re: Clarification for the application of GVariant/Glib::Variant maybe types

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?)

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

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

murrayc murrayc com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]