Counter use 0 in start

This commit is contained in:
sha512sum 2024-04-17 23:18:14 +00:00
parent 2724f01730
commit 219233d846

View file

@ -24,9 +24,9 @@ consteval auto Counter(std::size_t arg) requires Injected<TagWithTalue<Tag, I>{}
template <
typename Tag,
typename... Ts,
auto R = impl::Counter<0, Tag, Ts...>(std::size_t{})
std::size_t R = impl::Counter<0, Tag, Ts...>(std::size_t{}) - 1
>
consteval auto Counter(auto...) {
consteval auto Counter(auto...) -> std::size_t {
return R;
};