refactor: Replace all uses of boost::optional with our own Optional type

After this:

- `boost::optional` is no longer used directly (only through `Optional`
    which is an alias for it)
- `boost/optional.hpp` is only included in one place
This commit is contained in:
Wladimir J. van der Laan
2019-10-30 13:10:02 +01:00
parent ecad0a8019
commit d314e8a818
5 changed files with 14 additions and 14 deletions

View File

@@ -4,11 +4,10 @@
#include <wallet/coinselection.h>
#include <optional.h>
#include <util/system.h>
#include <util/moneystr.h>
#include <boost/optional.hpp>
// Descending order comparator
struct {
bool operator()(const OutputGroup& a, const OutputGroup& b) const
@@ -219,7 +218,7 @@ bool KnapsackSolver(const CAmount& nTargetValue, std::vector<OutputGroup>& group
nValueRet = 0;
// List of values less than target
boost::optional<OutputGroup> lowest_larger;
Optional<OutputGroup> lowest_larger;
std::vector<OutputGroup> applicable_groups;
CAmount nTotalLower = 0;