From 5b23b11129feadc5761bba419282282543f158a5 Mon Sep 17 00:00:00 2001 From: Mugr Rex Date: Mon, 24 Apr 2023 19:10:04 +0200 Subject: [PATCH] Readded updater Must have been lost while concating everything into one commit --- include/updater/csv_file_parser.hpp | 2 +- include/updater/source.hpp | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/updater/csv_file_parser.hpp b/include/updater/csv_file_parser.hpp index e21565f1a..d51ada156 100644 --- a/include/updater/csv_file_parser.hpp +++ b/include/updater/csv_file_parser.hpp @@ -39,7 +39,7 @@ template struct CSVFilesParser { } - // Operator returns a lambda function that maps input Key to boost::optional. + // Operator returns a lambda function that maps input Key to std::optional. auto operator()(const std::vector &csv_filenames) const { try diff --git a/include/updater/source.hpp b/include/updater/source.hpp index 0b3dec11b..e97df9bd0 100644 --- a/include/updater/source.hpp +++ b/include/updater/source.hpp @@ -3,8 +3,7 @@ #include "util/typedefs.hpp" -#include - +#include #include namespace osrm::updater @@ -12,9 +11,9 @@ namespace osrm::updater template struct LookupTable { - boost::optional operator()(const Key &key) const + std::optional operator()(const Key &key) const { - using Result = boost::optional; + using Result = std::optional; const auto it = std::lower_bound( lookup.begin(), lookup.end(), key, [](const auto &lhs, const auto &rhs) { return rhs < lhs.first; @@ -49,7 +48,7 @@ struct SpeedSource final { SpeedSource() : speed(0.), rate() {} double speed; - boost::optional rate; + std::optional rate; std::uint8_t source; };