https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106275
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #3) > The __is_fast_hash trait is true for std::hash<std::string> but false for > your custom hash function. Oops, I mean the other way around! std::hash<std::string> is considered slow, your custom hash function is not.