From 9b9a0960544bc056599d43b2c61a59c7906d0f29 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Tue, 19 Nov 2019 11:45:46 +0300 Subject: [PATCH] [base] JoinAny signature is changed, template parameter is replaced by std::function --- base/string_utils.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/string_utils.hpp b/base/string_utils.hpp index 0e72041c7c..a05e28e3c9 100644 --- a/base/string_utils.hpp +++ b/base/string_utils.hpp @@ -571,9 +571,10 @@ typename Container::value_type JoinStrings(Container const & container, Delimite return JoinStrings(begin(container), end(container), delimiter); } -template +template std::string JoinAny(Iterator first, Iterator last, Delimiter const & delimiter, - Converter const & converter) + std::function< + std::string (typename Iterator::value_type const & v)> const & converter) { if (first == last) return {};