Skip to content

Conversation

@WeiqunZhang
Copy link
Member

No description provided.

@WeiqunZhang WeiqunZhang requested a review from ax3l October 11, 2024 23:33
@WeiqunZhang WeiqunZhang enabled auto-merge (squash) October 11, 2024 23:34
@WeiqunZhang
Copy link
Member Author

Note that because structured binding to const reference extends the lifetime of the temporary object, the following code is correct.

auto const& [a, b] = M * v

where M is a matrix and v is a vector.

Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Cool, thanks!!

@ax3l ax3l self-assigned this Oct 12, 2024
@WeiqunZhang WeiqunZhang merged commit 62c2a81 into AMReX-Codes:development Oct 12, 2024
59 checks passed
@WeiqunZhang WeiqunZhang deleted the smsb branch October 12, 2024 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants