If clay/util.h is included before anything involving standard hash function in C++11 (e.g. unordered_set), the compilation fails due to re-specialization of std::hash<short>.
Hacky solutions: #undef bool after including clay/util.h or use different order of includes.
If clay/util.h is included before anything involving standard hash function in C++11 (e.g. unordered_set), the compilation fails due to re-specialization of
std::hash<short>
.Hacky solutions:
#undef bool
after including clay/util.h or use different order of includes.Proper solution: avoid using
#define bool short
in clay, resort toint
as in C89, see https://github.com/ftynse/clay/commit/ccec5a69feea1cebe57187f8150140b43a636d17