From fd9820aa22f131faf50f90b239eb8e11076a986b Mon Sep 17 00:00:00 2001 From: sha512sum Date: Sat, 29 Jun 2024 09:27:27 +0000 Subject: [PATCH] Fix CloseStruct --- include/utempl/attributes.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utempl/attributes.hpp b/include/utempl/attributes.hpp index ec0ae86..3c0375e 100644 --- a/include/utempl/attributes.hpp +++ b/include/utempl/attributes.hpp @@ -33,7 +33,7 @@ template < typename..., auto f = []{}, auto I = loopholes::CountValue(), - auto II = (I > 2) ? I - 2 : I - 1, + auto II = (I >= 2) ? I - 2 : I - 1, typename T = decltype(Magic(loopholes::Getter{}>{}))::Type, auto = AddTypeToTag() >