Open feature-engineer opened 2 months ago
See also #748.
The bug is result of commit 94bea673583991d2ff90de96a8c4d7a0d312a2b6 (modified by commit a18d22ed96c7cf90e6643714515a1ff990cbb720). I'll see if reverting it in #927 fixes the issue (it should!).
Done? You still need the parentheses since commit 5663493860a5558a3d64c59ac9ee6f0e26dedf99, otherwise it's parsed as a multiplication.
Note that commit 94bea673583991d2ff90de96a8c4d7a0d312a2b6
made the rhs of the *
lower to {}
.
Operators don't accept a braced-init-list argument.
But commit 5663493860a5558a3d64c59ac9ee6f0e26dedf99 happened before,
which changed the *
from dereference to multiplication.
Describe the bug When using a functor inside a lambda, e.g.
This fails with some incomprehensible error saying is not invocable. But
std::ranges::generate(arr, :() (f&$*)(););
works fine.To Reproduce
Here's the code that fails (this is a toy example, ignore the bugs):
Here's the code that works:
I would have expected the first version to work, but failing that, I would have expected a better error message.
Here's the actual error message: