Skip to content

Commit 199702c

Browse files
committed
Add hash_cref inequality operator overload to std.
1 parent 559063d commit 199702c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

include/bitcoin/system/hash/functions.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ inline bool operator!=(const bc::system::hash_cref& left,
184184
{
185185
return !(left == right);
186186
}
187+
188+
inline bool operator!=(const bc::system::hash_cref& left,
189+
const bc::system::hash_digest& right) NOEXCEPT
190+
{
191+
return !(left.get() == right);
192+
}
187193
} // namespace std
188194

189195
/// Extend std and boost namespaces with djb2_hash.

0 commit comments

Comments
 (0)