Skip to content

Templated value checking and getter #316

Closed
@miloyip

Description

@miloyip

Provide templated functions:

bool Value::Is<int>() const;
int Value::Get<int>() const;
...

These functions are useful when the user code has templated types.

A difficulty is that current RapidJSON does not provide adapter classes for array and object. As @pah suggested in #162 (comment), we can add some class like that. So we can also have Array Value::GetArray() and Array Get<Array>(), etc.

I create this issue for replacing #153.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions