This definition works:
const auto &b{nullptr};
while this fails:
auto *b{nullptr};
I have tried to compile this in Visual C++, GCC, and Clang. They all complain "cannot deduce type".
In the second case, shouldn't b
be deduced to have some type like std::nullptr_t
?