diff options
Diffstat (limited to 'src/other_tools/ops_maps/archive_fetch_map.hpp')
-rw-r--r-- | src/other_tools/ops_maps/archive_fetch_map.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/other_tools/ops_maps/archive_fetch_map.hpp b/src/other_tools/ops_maps/archive_fetch_map.hpp index fccc4bd4..3c4ed82c 100644 --- a/src/other_tools/ops_maps/archive_fetch_map.hpp +++ b/src/other_tools/ops_maps/archive_fetch_map.hpp @@ -17,7 +17,9 @@ #include <cstddef> #include <filesystem> +#include <functional> #include <optional> +#include <string> #include "gsl/gsl" #include "src/buildtool/execution_api/common/execution_api.hpp" @@ -37,4 +39,9 @@ using ArchiveFetchMap = AsyncMapConsumer<ArchiveContent, bool>; gsl::not_null<JustMRStatistics*> const& stats, std::size_t jobs) -> ArchiveFetchMap; +// use explicit cast to std::function to allow template deduction when used +static const std::function<std::string(ArchiveContent const&)> + kArchiveContentPrinter = + [](ArchiveContent const& x) -> std::string { return x.content; }; + #endif // INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_ARCHIVE_FETCH_MAP_HPP |