diff options
Diffstat (limited to 'src/other_tools/ops_maps/git_update_map.hpp')
-rw-r--r-- | src/other_tools/ops_maps/git_update_map.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/other_tools/ops_maps/git_update_map.hpp b/src/other_tools/ops_maps/git_update_map.hpp index cdb9e55a..d30ebe07 100644 --- a/src/other_tools/ops_maps/git_update_map.hpp +++ b/src/other_tools/ops_maps/git_update_map.hpp @@ -16,6 +16,7 @@ #define INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_GIT_UPDATE_MAP_HPP #include <cstddef> +#include <functional> #include <string> #include <utility> #include <vector> @@ -64,4 +65,11 @@ struct hash<RepoDescriptionForUpdating> { gsl::not_null<JustMRProgress*> const& progress, std::size_t jobs) -> GitUpdateMap; +// use explicit cast to std::function to allow template deduction when used +static const std::function<std::string(RepoDescriptionForUpdating const&)> + kRepoDescriptionPrinter = + [](RepoDescriptionForUpdating const& x) -> std::string { + return x.repo; +}; + #endif // INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_GIT_UPDATE_MAP_HPP |