cleanup
This commit is contained in:
parent
9041bca378
commit
9a5cd080ef
@ -4,9 +4,12 @@
|
|||||||
#include <boost/fusion/adapted/std_tuple.hpp>
|
#include <boost/fusion/adapted/std_tuple.hpp>
|
||||||
#include <boost/spirit/include/qi.hpp>
|
#include <boost/spirit/include/qi.hpp>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <iostream>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace qi = boost::spirit::qi;
|
namespace qi = boost::spirit::qi;
|
||||||
|
|
||||||
@ -29,7 +32,7 @@ auto calibrated(
|
|||||||
std::vector<std::uint64_t> const& numbers
|
std::vector<std::uint64_t> const& numbers
|
||||||
) -> bool
|
) -> bool
|
||||||
{
|
{
|
||||||
if (numbers.size() == 0) { return false; }
|
if (numbers.empty()) { return false; }
|
||||||
|
|
||||||
auto work = std::stack<std::tuple<std::size_t, std::uint64_t>>{};
|
auto work = std::stack<std::tuple<std::size_t, std::uint64_t>>{};
|
||||||
work.emplace(numbers.size() - 1, target);
|
work.emplace(numbers.size() - 1, target);
|
||||||
|
Loading…
Reference in New Issue
Block a user