From 066a31677835d7f990be3e68d01f7d67f564a010 Mon Sep 17 00:00:00 2001 From: dehnert Date: Wed, 17 Sep 2014 18:07:35 +0200 Subject: [PATCH] Adapted erase to receive an iterator instead of a const_iterator to make it work under linux. Former-commit-id: cae58b3f6043c3fceabfbfa8e044574b0c52b459 --- src/modelchecker/reachability/SparseSccModelChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modelchecker/reachability/SparseSccModelChecker.cpp b/src/modelchecker/reachability/SparseSccModelChecker.cpp index 78c54a4a0..bcb4a8f05 100644 --- a/src/modelchecker/reachability/SparseSccModelChecker.cpp +++ b/src/modelchecker/reachability/SparseSccModelChecker.cpp @@ -214,7 +214,7 @@ namespace storm { typename FlexibleSparseMatrix::row_type& successorBackwardTransitions = backwardTransitions.getRow(successorEntry.getColumn()); // Delete the current state as a predecessor of the successor state. - typename FlexibleSparseMatrix::row_type::const_iterator elimIt = std::find_if(successorBackwardTransitions.begin(), successorBackwardTransitions.end(), [&](storm::storage::MatrixEntry::index_type, typename FlexibleSparseMatrix::value_type> const& a) { return a.getColumn() == state; }); + typename FlexibleSparseMatrix::row_type::iterator elimIt = std::find_if(successorBackwardTransitions.begin(), successorBackwardTransitions.end(), [&](storm::storage::MatrixEntry::index_type, typename FlexibleSparseMatrix::value_type> const& a) { return a.getColumn() == state; }); if (elimIt != successorBackwardTransitions.end()) { successorBackwardTransitions.erase(elimIt); }