We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code:
struct Foo { int a[5]; float b[]; }; int main() { Foo foo{{10}, {}}; auto [a1, b1] = foo; const auto& [a2, b2] = foo; }
And output:
struct Foo { int a[5]; float b[]; // inline constexpr Foo(const Foo &) noexcept = default; }; int main() { Foo foo = {{10, 0, 0, 0, 0}, {}}; Foo __foo9 = Foo(foo); int [5]& a1 = __foo9.a; // invalid declaration, should be `int (&a1)[5] = ...` float []& b1 = __foo9.b; const Foo & __foo10 = foo; int const[5]& a2 = __foo10.a; float const[]& b2 = __foo10.b; }
The text was updated successfully, but these errors were encountered:
Hello @jakubdabek,
thanks for reporting this issue! That is indeed terribly wrong. A fix is on its way.
Andreas
Sorry, something went wrong.
81084ad
Merge pull request #353 from andreasfertig/fixIssue352
10d80b8
Fixed #352: Reference to array in structured binding was invalid.
No branches or pull requests
Example code:
And output:
The text was updated successfully, but these errors were encountered: