Skip to content

Structure binding a tuple-like type #131

@shebdim

Description

@shebdim
#include <tuple>

std::tuple<int, float> foo();
 
auto [a, b] = foo();

transform into invalid syntax

#include <tuple>

std::tuple<int, float> foo();

 
std::tuple<int, float> __foo5 = foo();
std::tuple_element<0, std::tuple<int, float> >::type& a = std::get<0ul>(__foo5);
std::tuple_element<0, std::tuple<float> >::type& b = std::get<std::tuple_element<0, std::tuple<int, float> >::type && a = std::get<0ul>();
ulstd::tuple_element<0, std::tuple<float> >::type && b = std::get<1ul>();
(__foo5);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions