More compile-time checks with std::nullptr_t

In today's post, I like to show you the benefit of a often unknown type: std::nullptr_t . You have that data type in the language since C++11, together with the much more frequently used nullptr . While nullptr is the value, std::nullptr_t is the data type that can hold …