[libcxx-commits] [libcxx] [libc++] <algorithm>: __is_callable checks whether the callable can be called with rvalue (PR #73451)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 11 07:42:13 PST 2023
philnik777 wrote:
> > do you have any opinions on this? I will wait for your response before I continue.
>
> @philnik777 Do you remember why you added the `__is_callable` checks in the first place? The Standard isn't all that clear about what the requirements are for classic algorithms, so I think removing these checks would also be a viable path forward. I seem to remember there was a good reason for adding those, so I'm reluctant to do it without remembering the context.
We added them to disallow the use of functions to member pointers etc. to be passed to the classic algorithms.
https://github.com/llvm/llvm-project/pull/73451
More information about the libcxx-commits
mailing list