From 0fd8002b11852969d5a8625dd151c085bf44af57 Mon Sep 17 00:00:00 2001 From: Pavel Guzenfeld Date: Wed, 18 Mar 2026 15:13:22 +0000 Subject: [PATCH] Fix most vexing parse in SparseSparseProductWithPruning.h libeigen/eigen!2298 Closes #3060 Co-authored-by: Pavel Guzenfeld <67074795+PavelGuzenfeld@users.noreply.github.com> --- Eigen/src/SparseCore/SparseSparseProductWithPruning.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/SparseCore/SparseSparseProductWithPruning.h b/Eigen/src/SparseCore/SparseSparseProductWithPruning.h index 84816aef4..41e5261ae 100644 --- a/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +++ b/Eigen/src/SparseCore/SparseSparseProductWithPruning.h @@ -84,7 +84,7 @@ struct sparse_sparse_product_with_pruning_selector res_(res.rows(), res.cols()); + remove_all_t res_{res.rows(), res.cols()}; internal::sparse_sparse_product_with_pruning_impl(lhs, rhs, res_, tolerance); res.swap(res_); } @@ -96,7 +96,7 @@ struct sparse_sparse_product_with_pruning_selector SparseTemporaryType; - SparseTemporaryType res_(res.rows(), res.cols()); + SparseTemporaryType res_{res.rows(), res.cols()}; internal::sparse_sparse_product_with_pruning_impl(lhs, rhs, res_, tolerance); res = res_; } @@ -107,7 +107,7 @@ struct sparse_sparse_product_with_pruning_selector res_(res.rows(), res.cols()); + remove_all_t res_{res.rows(), res.cols()}; internal::sparse_sparse_product_with_pruning_impl(rhs, lhs, res_, tolerance); res.swap(res_); }