Date: Thu, 27 Feb 2025 09:55:01 +0000
On Thu, 27 Feb 2025, 02:39 Jack O'Donohue via Std-Proposals, <
std-proposals_at_[hidden]> wrote:
> Someone said this could be considered a defect, but it seems more like a
> proposal to me, especially with pointers to members.
>
It's not a defect, the original design is working as intended. You're
proposing a change to the design.
My main concern is that you don't always use exactly the same signature
with the std::function as the target that you construct it with. For
example, you might have a function of type const int&(const int&) and want
to store it in std::function<long(int)>. Your new constructors wouldn't
help here.
std-proposals_at_[hidden]> wrote:
> Someone said this could be considered a defect, but it seems more like a
> proposal to me, especially with pointers to members.
>
It's not a defect, the original design is working as intended. You're
proposing a change to the design.
My main concern is that you don't always use exactly the same signature
with the std::function as the target that you construct it with. For
example, you might have a function of type const int&(const int&) and want
to store it in std::function<long(int)>. Your new constructors wouldn't
help here.
Received on 2025-02-27 09:55:17