Fix warnings related to variable_if_dynamic.

libeigen/eigen!2107

Closes #2807
This commit is contained in:
Antonio Sánchez
2026-01-16 19:47:14 +00:00
committed by Charles Schlosser
parent 9a37aca9fc
commit 918a5f1a6f
2 changed files with 3 additions and 5 deletions

View File

@@ -153,7 +153,6 @@ struct promote_index_type {
template <typename T, int Value>
class variable_if_dynamic {
public:
EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(variable_if_dynamic)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE explicit variable_if_dynamic(T v) {
EIGEN_ONLY_USED_FOR_DEBUG(v);
eigen_assert(v == T(Value));