From 9eede7544a439ecd31a6fc2afcf5b56ac01e204b Mon Sep 17 00:00:00 2001 From: sha512sum Date: Tue, 11 Jun 2024 08:35:29 +0000 Subject: [PATCH] Fix MakeTuple for std::array with 0 elements --- include/utempl/utils.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/utempl/utils.hpp b/include/utempl/utils.hpp index d105499..7b863bd 100644 --- a/include/utempl/utils.hpp +++ b/include/utempl/utils.hpp @@ -107,6 +107,9 @@ struct TupleMaker> { requires (std::same_as, std::remove_cvref_t> && ...) { return std::array{std::forward(arg), std::forward(args)...}; }; + static constexpr auto Make() -> std::array { + return {}; + }; }; template