diff --git a/src/adapters/GmmxxAdapter.h b/src/adapters/GmmxxAdapter.h index c3dd49779..c696e15e4 100644 --- a/src/adapters/GmmxxAdapter.h +++ b/src/adapters/GmmxxAdapter.h @@ -45,7 +45,9 @@ public: // Copy columns and values. std::vector values; values.reserve(matrix.getEntryCount()); - std::vector columns; + + // To match the correct vector type for gmm, we create the vector with the exact same type. + decltype(result->ir) columns; columns.reserve(matrix.getEntryCount()); for (auto const& entry : matrix) { @@ -80,7 +82,9 @@ public: // Copy columns and values. It is absolutely necessary to do so before moving the row indications vector. std::vector values; values.reserve(matrix.getEntryCount()); - std::vector columns; + + // To match the correct vector type for gmm, we create the vector with the exact same type. + decltype(result->ir) columns; columns.reserve(matrix.getEntryCount()); for (auto const& entry : matrix) {