[PATCH] D54737: [clang-tidy] Add the abseil-duration-comparison check

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 3 11:35:54 PST 2018


riccibruno added a comment.

In D54737#1317128 <https://reviews.llvm.org/D54737#1317128>, @JonasToth wrote:

> I had to revert and recommitted in rCTE348169 <https://reviews.llvm.org/rCTE348169>. `std::unordered_map<enum class Something, ...>` does not work, as `std::hash` is not specialized for it. This behaviour seems to work for some compilers, but some not. I had to google myself a bit for the best solution, but now I specialized the hash-function to `std::hash<std::int8>()` in `unordered_set` which worked for me locally and was suggested. Lets see ;)


`int8` ? Did you mean `int8_t` or am I missing somthing ?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54737/new/

https://reviews.llvm.org/D54737





More information about the cfe-commits mailing list