boostorg / boostorg/container_hash
Unsupported types should be poisoned similarly to the stdlib
Open
- Dominant language
- C++
- Stars
- 39
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
Consider https://godbolt.org/z/5W1x94aTh
We see that:
```cpp
static_assert(std::is_invocable_v, rawr>);
```
correctly fails until
```cpp
template<>
struct std::hash {
std::size_t operator()(rawr const&) const noexcept { return 0; }
};
```
is defined.
This would enable downstream consumers to write simple `is_hashable` trait checks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.