[libcxx-commits] [libcxx] [libc++] <algorithm>: __is_callable checks whether the callable can be called with rvalue (PR #73451)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 11 08:38:14 PST 2023


ldionne wrote:

> > @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.

Oh yeah, that's it. Wouldn't that fail to compile already though?


https://github.com/llvm/llvm-project/pull/73451


More information about the libcxx-commits mailing list