C++ Logo


Advanced search

Re: Adding a nullptr_t constructor to weak_ptr

From: Michael Hava <mfh_at_[hidden]>
Date: Tue, 26 Nov 2019 09:03:32 +0000
(Honestly, this makes me wonder why nullptr can construct an empty std::function, but it’s probably best not to go down that rabbit hole.)

I’m guessing that constructor is for symmetry with function pointers (https://godbolt.org/z/UftWpU).

Received on 2019-11-26 03:05:56