From 3c9b31821828f61cedee795bd53306feec5513a5 Mon Sep 17 00:00:00 2001 From: rexy712 Date: Thu, 30 Jun 2022 10:43:10 -0700 Subject: [PATCH] Fix warning --- include/rexy/detail/format/named_args.tpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rexy/detail/format/named_args.tpp b/include/rexy/detail/format/named_args.tpp index 8cc38a6..5680bbd 100644 --- a/include/rexy/detail/format/named_args.tpp +++ b/include/rexy/detail/format/named_args.tpp @@ -37,7 +37,7 @@ namespace rexy::fmt::detail{ } } } - if constexpr(sizeof...(Args)){ + if constexpr(sizeof...(Args) > 0){ return find_static_named_arg_id_impl(first, last); }else{ return invalid_arg_index;