boostorg / boostorg/mp11

Is it more consistent if `mp_for_each` invokes functor with `mp_identity<T>()`?

Open
#23 4 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.