Skip to content

std::vectors containing floats #17

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}).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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