mempool: remove stray boost::optional usage

This commit is contained in:
Kittywhiskers Van Gogh 2024-03-19 09:43:27 +00:00
parent bcd383c2d6
commit 081d8db4d5
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD
2 changed files with 1 additions and 3 deletions

View File

@ -28,7 +28,6 @@
#include <util/epochguard.h>
#include <util/hasher.h>
#include <boost/optional.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/ordered_index.hpp>
@ -840,7 +839,7 @@ public:
return m_epoch.visited(it->m_epoch_marker);
}
bool visited(boost::optional<txiter> it) const EXCLUSIVE_LOCKS_REQUIRED(cs, m_epoch) {
bool visited(std::optional<txiter> it) const EXCLUSIVE_LOCKS_REQUIRED(cs, m_epoch) {
assert(m_epoch.guarded());
return !it || visited(*it);
}

View File

@ -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