Following discussion #963, this issue reports a potential pitfall when passing the result of unary operation + on a lambda to clad::differentiate.
Currently, as explained by @gojakuch in #963 , the best solution is not to use the unary operation to retrieve the address of the call operator of the lambda and directly pass the lambda to clad::differentiate.
This issue has only been opened for the records. Feel free to close it as this is mostly a corner case.
Following discussion #963, this issue reports a potential pitfall when passing the result of unary operation
+
on a lambda toclad::differentiate
.Currently, as explained by @gojakuch in #963 , the best solution is not to use the unary operation to retrieve the address of the call operator of the lambda and directly pass the lambda to
clad::differentiate
.This issue has only been opened for the records. Feel free to close it as this is mostly a corner case.