From ded2fe967269c892d8691e0e405a4adc4c4358f4 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 28 Aug 2024 16:34:39 +0200 Subject: just-mr maps: Add utility key-printing functions ...to be used when reporting pending keys on failure to post value. --- src/other_tools/repo_map/repos_to_setup_map.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/other_tools/repo_map') diff --git a/src/other_tools/repo_map/repos_to_setup_map.hpp b/src/other_tools/repo_map/repos_to_setup_map.hpp index 257e4251..0f7f6473 100644 --- a/src/other_tools/repo_map/repos_to_setup_map.hpp +++ b/src/other_tools/repo_map/repos_to_setup_map.hpp @@ -16,6 +16,7 @@ #define INCLUDED_SRC_OTHER_TOOLS_REPO_MAP_REPOS_TO_SETUP_MAP_HPP #include +#include #include #include #include @@ -48,4 +49,9 @@ auto CreateReposToSetupMap( gsl::not_null const& stats, std::size_t jobs) -> ReposToSetupMap; +// use explicit cast to std::function to allow template deduction when used +static const std::function + kReposToSetupPrinter = + [](std::string const& x) -> std::string { return x; }; + #endif // INCLUDED_SRC_OTHER_TOOLS_REPO_MAP_REPOS_TO_SETUP_MAP_HPP -- cgit v1.2.3