From f946121b95f52c3a909197119ea17202e6088b17 Mon Sep 17 00:00:00 2001 From: dehnert Date: Wed, 18 Dec 2013 11:53:23 +0100 Subject: [PATCH] Fixed an incorrect type issue in the GmmxxAdapter. Former-commit-id: 311a970fac7be52c946cf560f5881dd81a5cc9b0 --- src/adapters/GmmxxAdapter.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {