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

Fix compile issue: error: no matching function for call #65

Closed
wants to merge 1 commit into from

Conversation

HungMingWu
Copy link

Fix compile issue: error: no matching function for call
cannot convert initializer list argument to 'std::span

@katzdm
Copy link
Collaborator

katzdm commented Jun 28, 2024

Hey @HungMingWu , thanks for the PR! I'm not able to reproduce the issue that you're seeing; can you provide an example code snippet?

Here is an example of type_is_assignable working as currently implemented:
https://godbolt.org/z/5a4hEd3qj

@HungMingWu
Copy link
Author

Hey @HungMingWu , thanks for the PR! I'm not able to reproduce the issue that you're seeing; can you provide an example code snippet?

Here is an example of type_is_assignable working as currently implemented: https://godbolt.org/z/5a4hEd3qj

All right, I found the problem.
Your compile flag is

-fparameter-reflection

Mine is

-fparameter-reflection -std=c++23

Append C++23 will cause the issue, please close the MR.

@katzdm katzdm closed this Jun 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants