-
Notifications
You must be signed in to change notification settings - Fork 70
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 it more consistent if mp_for_each
invokes functor with mp_identity<T>()
?
#23
Comments
mp_for_each
invokes functor with mp_identity<T>()
?mp_for_each
invokes functor with mp_identity<T>()
?
|
|
Just passing by with a comment: I slightly lean against adding |
I think, extending the documentation but no code changes is a good trade-off. |
…ements Suggested here: boostorg/mp11#23
…ements Suggested here: boostorg/mp11#23
…ements Suggested here: boostorg/mp11#23
Currently,
mp_for_each
invokesf
withT()
. This adds a default-constructible requirement for typeT
which is not always feasible and also not very consistent with other parts of mp11 that never instantiate user-provided types. Should notmp_for_each
invoke passed functor withmp_identity<T>()
instead?The text was updated successfully, but these errors were encountered: