The return type of Value is optional:

  optional<std::string> Value(const std::string &family, const std::string
&qualifier) const;

You can use the following expression:

result->Value("d", "extra") == none

FYI

On Thu, Sep 28, 2017 at 5:58 AM, Andrzej <[email protected]> wrote:

> I get:
> return result->Value(family, qualifier).value()
> how can I check if (family,qulifier) exists? or is possible return empty
> string instead error?
>

Reply via email to