forked from OSchip/llvm-project
Allow function_ref(nullptr) like std::function, since it's nullable already
llvm-svn: 322487
This commit is contained in:
parent
da1fad3ec6
commit
264a683ec8
|
@ -101,6 +101,7 @@ class function_ref<Ret(Params...)> {
|
|||
|
||||
public:
|
||||
function_ref() = default;
|
||||
function_ref(std::nullptr_t) {}
|
||||
|
||||
template <typename Callable>
|
||||
function_ref(Callable &&callable,
|
||||
|
|
Loading…
Reference in New Issue