mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user