Fixed MSVC 2022 warning

MSVC rightfully issues warning C4305: 'if': truncation from 'size_t' to
'bool' in a static_assert condition that implicitly converts sizeof
result to a boolean.

Change-Id: Ie3b913288bfeaa7a4b362ef7f83d2505ed368641
This commit is contained in:
Sergiu Deitsch
2022-06-24 00:12:09 +02:00
parent 83f6e08530
commit 4e5ea292ba
+1 -1
View File
@@ -49,7 +49,7 @@ inline bool VariadicEvaluateImpl(const Functor& functor,
T* output,
std::false_type /*is_dynamic*/,
std::integer_sequence<int, Indices...>) {
static_assert(sizeof...(Indices),
static_assert(sizeof...(Indices) > 0,
"Invalid number of parameter blocks. At least one parameter "
"block must be specified.");
return functor(input[Indices]..., output);