boostorg / boostorg/container_hash

Unsupported types should be poisoned similarly to the stdlib

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.