Open cmazakas opened 1 year ago
Consider https://godbolt.org/z/5W1x94aTh
We see that:
static_assert(std::is_invocable_v<std::hash<rawr>, rawr>);
correctly fails until
template<> struct std::hash<rawr> { std::size_t operator()(rawr const&) const noexcept { return 0; } };
is defined.
This would enable downstream consumers to write simple is_hashable trait checks.
is_hashable
Consider https://godbolt.org/z/5W1x94aTh
We see that:
correctly fails until
is defined.
This would enable downstream consumers to write simple
is_hashable
trait checks.