diff options
Diffstat (limited to 'src/buildtool/build_engine/base_maps/expression_map.hpp')
-rw-r--r-- | src/buildtool/build_engine/base_maps/expression_map.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildtool/build_engine/base_maps/expression_map.hpp b/src/buildtool/build_engine/base_maps/expression_map.hpp index 5d08b78b..3a72c109 100644 --- a/src/buildtool/build_engine/base_maps/expression_map.hpp +++ b/src/buildtool/build_engine/base_maps/expression_map.hpp @@ -15,6 +15,7 @@ #ifndef INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_EXPRESSION_MAP_HPP #define INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_EXPRESSION_MAP_HPP +#include <functional> #include <memory> #include <string> @@ -43,6 +44,10 @@ auto CreateExpressionMap(gsl::not_null<ExpressionFileMap*> const& expr_file_map, gsl::not_null<RepositoryConfig*> const& repo_config, std::size_t jobs = 0) -> ExpressionFunctionMap; +// use explicit cast to std::function to allow template deduction when used +static const std::function<std::string(EntityName const&)> kEntityNamePrinter = + [](EntityName const& x) -> std::string { return x.ToString(); }; + } // namespace BuildMaps::Base #endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_EXPRESSION_MAP_HPP |