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

simplify function_ref code by deducing noexcept-ness #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hanickadot
Copy link

@hanickadot hanickadot commented Dec 27, 2023

function_ref implementation can be simplified a bit by deducing noexcept-ness

@hanickadot hanickadot changed the title chore: simplify function_ref code by deducing noexcept-ness and remove branching for void return type simplify function_ref code by deducing noexcept-ness and remove branching for void return type Dec 27, 2023
@hanickadot
Copy link
Author

also fixed clang compilation error due template template mismatch

@hanickadot hanickadot changed the title simplify function_ref code by deducing noexcept-ness and remove branching for void return type simplify function_ref code by deducing noexcept-ness Dec 27, 2023
@zhihaoy
Copy link
Owner

zhihaoy commented Dec 27, 2023

Seems unsupported by MSVC
image

@zhihaoy
Copy link
Owner

zhihaoy commented Dec 27, 2023

PS: which version of Clang were you testing?

@hanickadot
Copy link
Author

I tried it with clang 17.0.6 and 16.0.6. 15 and lower has some errors (looked just now) will fix them tomorrow.

MSVC makes me sad.

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