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 some unused parameters #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

e-dant
Copy link

@e-dant e-dant commented Mar 3, 2023

Addresses part of #137

PS Thanks for your work

@@ -232,16 +232,16 @@ auto static_if(F&& f) -> std::enable_if_t<b>
std::forward<F>(f)(empty_t{});
}
template <bool b, typename F>
auto static_if(F&& f) -> std::enable_if_t<!b>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these should just be annotated as maybe unused instead of removed

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the very late review! This changes the signature of the function so I don't think this work. Maybe you can do it like this:

template <bool b, typename F>
auto static_if(F&&) -> std::enable_if_t<!b>

??

@arximboldi
Copy link
Owner

Sorry for the late review of the code. I'd be happy to merge it once the issues in the comment is addressed and the conflicts resolved.

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.

None yet

2 participants