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

small_function is not copy-constructible from another non-const object #105

Closed
cschreib opened this issue Jun 2, 2023 · 0 comments · Fixed by #102
Closed

small_function is not copy-constructible from another non-const object #105

cschreib opened this issue Jun 2, 2023 · 0 comments · Fixed by #102
Labels
bug:confirmed Something isn't working (confirmed)
Milestone

Comments

@cschreib
Copy link
Member

cschreib commented Jun 2, 2023

The choice of constructor is "ambiguous" when passing a non-const reference to a small_function object, because of the other constructors from functors. We need to improve the way constructors are constrained to avoid this.

@cschreib cschreib added the bug:confirmed Something isn't working (confirmed) label Jun 2, 2023
@cschreib cschreib added this to the v1.2 milestone Jun 2, 2023
@cschreib cschreib linked a pull request Jun 2, 2023 that will close this issue
@cschreib cschreib closed this as completed Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:confirmed Something isn't working (confirmed)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant