Is it more consistent if `mp_for_each` invokes functor with `mp_identity<T>()`?
Open
- Dominant language
- C++
- Stars
- 291
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Currently, `mp_for_each` invokes `f` with `T()`. This adds a default-constructible requirement for type `T` which is not always feasible and also not very consistent with other parts of mp11 that never instantiate user-provided types. Should not `mp_for_each` invoke passed functor with `mp_identity()` instead?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.