From 2c327741b1d6fd450d66ec70cfeea303d47e9c0d Mon Sep 17 00:00:00 2001 From: sha512sum Date: Tue, 26 Mar 2024 09:10:03 +0000 Subject: [PATCH] Add default R template param to Map --- include/utempl/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utempl/utils.hpp b/include/utempl/utils.hpp index f6d1261..a12a24d 100644 --- a/include/utempl/utils.hpp +++ b/include/utempl/utils.hpp @@ -169,7 +169,7 @@ inline constexpr auto Transform(Tuple&& container, F&& f, TypeList = {}) { }(std::make_index_sequence>()); }; -template +template inline constexpr auto Map(Tuple&& tuple, F&& f, TypeList result = {}) { return Transform(std::forward(tuple), std::forward(f), result); };