Is there really any use for the std::nullptr_t type except to help avoid function calls with a nullptr?
void f(int* pi) {}
void f(std::nullptr_t np) {}
Without f(std::nullptr_t), f(nullptr) would call f(int*).
Thanks
Is there really any use for the std::nullptr_t type except to help avoid function calls with a nullptr?
void f(int* pi) {}
void f(std::nullptr_t np) {}
Without f(std::nullptr_t), f(nullptr) would call f(int*).
Thanks