From d3721196c4d3017c2f79ba1f25b5e38c68b627e6 Mon Sep 17 00:00:00 2001 From: dehnert Date: Wed, 29 Oct 2014 16:30:42 +0100 Subject: [PATCH] Typed return value of lambda instead of using 'auto'. Former-commit-id: 03c3a38b9cb0e2687d2c2002e50ac9ff1e310f37 --- src/storage/DeterministicModelBisimulationDecomposition.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/DeterministicModelBisimulationDecomposition.cpp b/src/storage/DeterministicModelBisimulationDecomposition.cpp index f8ff11ea6..14e1e5cb9 100644 --- a/src/storage/DeterministicModelBisimulationDecomposition.cpp +++ b/src/storage/DeterministicModelBisimulationDecomposition.cpp @@ -763,8 +763,8 @@ namespace storm { std::sort(partition.getBegin(block), partition.getEnd(block), [] (std::pair const& a, std::pair const& b) { return a.first < b.first; }); // Convert the state-value-pairs to states only. - auto lambda = [] (std::pair const& a) -> storm::storage::sparse::state_type { return a.first; }; - this->blocks[block.getId()] = block_type(boost::make_transform_iterator(partition.getBegin(block), lambda), boost::make_transform_iterator(partition.getEnd(block), lambda), true); + std::function const&)> projection = [] (std::pair const& a) -> storm::storage::sparse::state_type { return a.first; }; + this->blocks[block.getId()] = block_type(boost::make_transform_iterator(partition.getBegin(block), projection), boost::make_transform_iterator(partition.getEnd(block), projection), true); } // If we are required to build the quotient model, do so now.