Skip to content

std::vectors containing floats #17

@Octarvian

Description

@Octarvian

I am getting the following error I am trying to parse the following struct:
{"name" : {"values" : [3e-06, 3e-06, 3e-06], "value2" : 5e-7}}

on the c++ side, I try to unpack it into
struct name{
std::vector values;
float value2;
}

The resulting struct holds the right value2 (value2 = 5e-7), but the values are wrong (values = {3.0, 3.0, 3.0}).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions