Skip to content

structured bindings squiggle on MinGW/WSL - cannot instantiate std::tuple_element #2474

@bobbrow

Description

@bobbrow

Type: LanguageService

To Reproduce
Try to use structured bindings in gcc/clang mode on Windows

void f()
{
    std::map<std::string, std::string> m;
    for (auto [key, value] : m)
    {
        std::cout << key << value << std::endl;
    }
}

image

This works fine with gcc/clang mode on Linux so it could just be a config issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.parser

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions