From a75348b7cc23f6a6878712ab8c14dafff46d31e9 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Wed, 8 May 2024 10:19:40 -0400 Subject: [PATCH] Make report_errors const. --- include/bitcoin/database/impl/store.ipp | 2 +- include/bitcoin/database/store.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bitcoin/database/impl/store.ipp b/include/bitcoin/database/impl/store.ipp index ed4d1714..5008fff2 100644 --- a/include/bitcoin/database/impl/store.ipp +++ b/include/bitcoin/database/impl/store.ipp @@ -956,7 +956,7 @@ void CLASS::clear_errors() NOEXCEPT } TEMPLATE -void CLASS::report_errors(const error_handler& handler) NOEXCEPT +void CLASS::report_errors(const error_handler& handler) const NOEXCEPT { const auto report = [&handler](const auto& storage, table_t table) NOEXCEPT { diff --git a/include/bitcoin/database/store.hpp b/include/bitcoin/database/store.hpp index d75a5613..84198f85 100644 --- a/include/bitcoin/database/store.hpp +++ b/include/bitcoin/database/store.hpp @@ -84,7 +84,7 @@ class store void clear_errors() NOEXCEPT; /// Dump all error conditions to error handler. - void report_errors(const error_handler& handler) NOEXCEPT; + void report_errors(const error_handler& handler) const NOEXCEPT; /// Tables. /// -----------------------------------------------------------------------