From 9fc68a554c0cae1354b5e26aa0a6278d0d13d0a9 Mon Sep 17 00:00:00 2001 From: PBerger Date: Wed, 29 Oct 2014 22:50:22 +0100 Subject: [PATCH] Cherry-picked a fix for GCC from branch. Former-commit-id: 98f7c52b346623f3de8a5f90b9a99e973ea7a25b --- 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 7ad0bd8ec..ccb33a153 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.