Allow function_ref(nullptr) like std::function, since it's nullable already

llvm-svn: 322487
This commit is contained in:
Sam McCall 2018-01-15 14:43:04 +00:00
parent da1fad3ec6
commit 264a683ec8
1 changed files with 1 additions and 0 deletions

View File

@ -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,