Skip to content

Converting to array not working #843

Description

@hsdk123

Converting from an std array to json works fine.
However, the other way round gives errors.

json j;
std::array<int, 4> ar = {1, 1, 1, 1};
j = ar; // works fine
ar = j; // breaks

I'm given the error that 'insert' doesn't exist for array.
Considering we're given j.size(), I believe this shouldn't be something that should be breaking.
(since I can already work around this by creating a loop that adds individual elements)

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

    solution: proposed fixa fix for the issue has been proposed and waits for confirmation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions