From 081d8db4d5960c52ba3966756de20bc939d051c1 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Tue, 19 Mar 2024 09:43:27 +0000 Subject: [PATCH] mempool: remove stray boost::optional usage --- src/txmempool.h | 3 +-- test/lint/lint-includes.sh | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/txmempool.h b/src/txmempool.h index da9f993686..34536cd5b7 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -28,7 +28,6 @@ #include #include -#include #include #include #include @@ -840,7 +839,7 @@ public: return m_epoch.visited(it->m_epoch_marker); } - bool visited(boost::optional it) const EXCLUSIVE_LOCKS_REQUIRED(cs, m_epoch) { + bool visited(std::optional it) const EXCLUSIVE_LOCKS_REQUIRED(cs, m_epoch) { assert(m_epoch.guarded()); return !it || visited(*it); } diff --git a/test/lint/lint-includes.sh b/test/lint/lint-includes.sh index 4ffe5745b0..e3f13c624f 100755 --- a/test/lint/lint-includes.sh +++ b/test/lint/lint-includes.sh @@ -58,7 +58,6 @@ EXPECTED_BOOST_INCLUDES=( boost/multi_index/ordered_index.hpp boost/multi_index/sequenced_index.hpp boost/multi_index_container.hpp - boost/optional.hpp boost/pool/pool_alloc.hpp boost/process.hpp boost/signals2/connection.hpp