Why doesn't the C++ standard specify that std::hash<T>
is specialized for char*
, const char*
, unsigned char*
, const unsigned char*
, etc? I.e., it would hash the contents of the C string until the terminating null is found.
Any harm in injecting my own specializations into the std
namespace for my own code?