Skip to content

Explicit Real return type for lambdas returning expressions - #3053

Open
auto-differentiation-dev wants to merge 1 commit into
lballabio:masterfrom
auto-differentiation-dev:fix/explicit-lambda-return-types
Open

auto-differentiation-dev wants to merge 1 commit into
lballabio:masterfrom
auto-differentiation-dev:fix/explicit-lambda-return-types

Conversation

@auto-differentiation-dev

Copy link
Copy Markdown
Contributor

With expression-template AD types, a deduced lambda return type can be an expression that refers to a dead temporary or argument; returning Real avoids that.

… type

With AD number types that use expression templates, a deduced return type can be an
expression referring to a temporary or a by-value argument that dies when the lambda returns.
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.

1 participant