Counter use 0 in start
This commit is contained in:
parent
2724f01730
commit
219233d846
1 changed files with 2 additions and 2 deletions
|
@ -24,9 +24,9 @@ consteval auto Counter(std::size_t arg) requires Injected<TagWithTalue<Tag, I>{}
|
||||||
template <
|
template <
|
||||||
typename Tag,
|
typename Tag,
|
||||||
typename... Ts,
|
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;
|
return R;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue