mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
mempool: remove stray boost::optional usage
This commit is contained in:
parent
bcd383c2d6
commit
081d8db4d5
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user