This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Attempt to improve diagnostics about Hash requirement violations
Needs ReviewPublic

Authored by EricWF on Mar 3 2017, 4:54 PM.

Details

Summary

This is my attempt to improve the diagnostic messages emitted from the unordered containers when the supplied hash doesn't meet the Hash requirements.

Unfortunately producing reasonable diagnostics is tricky and it requires a bunch of meta-programming to get right.

@thakis Does this look more reasonable to you?

Diff Detail

Event Timeline

EricWF created this revision.Mar 3 2017, 4:54 PM