Skip to content

Fixed lambda return type used in xfunxtion#2913

Open
JohanMabille wants to merge 1 commit intoxtensor-stack:masterfrom
JohanMabille:lambda_return_type
Open

Fixed lambda return type used in xfunxtion#2913
JohanMabille wants to merge 1 commit intoxtensor-stack:masterfrom
JohanMabille:lambda_return_type

Conversation

@JohanMabille
Copy link
Copy Markdown
Member

Fixes #2911

@Alex-PLACET
Copy link
Copy Markdown
Contributor

Can you add a test with the original issue ?

@JohanMabille
Copy link
Copy Markdown
Member Author

It's a bit hard to test, because the original issue was a dangling reference. This is not guaranteed to crash depending on how you invoke it, so a test would not really be meaningful here (we already have tests where we bind the result of such calls to reference and they pass).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lambdas in various cases of std::apply in xfunction.hpp don't return correct types

2 participants