diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-09 14:43:11 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-09 14:43:11 +0200 |
| commit | 134d3ac4caff6d87c79b0892e57073594cb0064c (patch) | |
| tree | e93c73d59ee50f3bdaa073bb5908ae3c74f7a985 /boot/result.cc | |
| parent | 244449004fb62adbfd43b81e8dfce7500ca4a7e4 (diff) | |
| download | elna-134d3ac4caff6d87c79b0892e57073594cb0064c.tar.gz | |
Remove Pointer and nil support
Diffstat (limited to 'boot/result.cc')
| -rw-r--r-- | boot/result.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/boot/result.cc b/boot/result.cc index 71326c0..10fb9fe 100644 --- a/boot/result.cc +++ b/boot/result.cc @@ -603,3 +603,10 @@ std::size_t std::hash<elna::boot::float_literal>::operator()(const elna::boot::f // -0.0 and 0.0 compare equal, so their hashes must agree. return std::hash<double>{}(key == 0.0 ? 0.0 : key.value()); } + +std::size_t std::hash<elna::boot::pointer_literal>::operator()( + const elna::boot::pointer_literal& key) const noexcept +{ + return std::hash<elna::boot::integer_literal>{}(key.address); +} + |
