Closed glenfe closed 7 years ago
Doesn't this disable addressof
for all non-const types? Shouldn't there be disable_if_c< is_reference< T >::value >::type
?
T
can never be a reference here.
Ah, I forgot there is already an overload for lvalue reference. Sorry for the noise.
Now in C++17:
template<class T> const T* addressof(const T&&) = delete;