This is a very old question, but I come here from time to time. Support for std::hash for uuid was introduced in Boost starting from version 1.68.0. You no longer need to explicitly provide a template specialization.
std::hash
uuid
https://github.com/boostorg/uuid/pull/67