From ed8e5cdafa92452af864836b0208e8adc7058880 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Fri, 10 Apr 2026 23:55:36 -0400 Subject: [PATCH] Make comparison operators const. --- include/bitcoin/database/types.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bitcoin/database/types.hpp b/include/bitcoin/database/types.hpp index 84b843ba..d97762e0 100644 --- a/include/bitcoin/database/types.hpp +++ b/include/bitcoin/database/types.hpp @@ -106,7 +106,7 @@ struct BCD_API unspent { struct less_than { - bool operator()(const unspent& a, const unspent& b) NOEXCEPT; + bool operator()(const unspent& a, const unspent& b) const NOEXCEPT; }; outpoint tx{}; @@ -118,7 +118,7 @@ struct BCD_API history { struct less_than { - bool operator()(const history& a, const history& b) NOEXCEPT; + bool operator()(const history& a, const history& b) const NOEXCEPT; }; checkpoint tx{};