Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__is_const_callable_object_v does not work for objects with multiple overloads #1461

Open
danhoeflinger opened this issue Mar 21, 2024 · 0 comments

Comments

@danhoeflinger
Copy link
Contributor

The way in which __is_const_callable_object_v is implemented does not work when there are multiple overloads of operator() (even in the form of templates).

It is only used in one place, replace_copy_if. It seems it could be replaced by a check to is_invocable_v with the specific argument type we are interested in, and then removed from utils. We need to check that we don't have unintended consequences on replace_copy_if though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant