Skip to content

C++17 decomposition declaration support #1087

@kenjichanhkg

Description

@kenjichanhkg

Possible to support this syntax in the library?

auto j = "{\"abc\":[34]}"_json;
for (auto& [k, v] : j){ // compile error
}

std::map example:

std::map<int, int> m;
for (auto& [k, v] : m){ // this works
}

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