You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that commit 94bea67
made the rhs of the * lower to {}.
Operators don't accept a braced-init-list argument.
But commit 5663493 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:
The text was updated successfully, but these errors were encountered: