Browse Source

Comment explaining need for std::move

tempestpy_adaptions
Matthias Volk 4 years ago
parent
commit
4c7b069212
No known key found for this signature in database GPG Key ID: 83A57678F739FCD3
  1. 2
      src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp
  2. 4
      src/storm/modelchecker/reachability/SparseDtmcEliminationModelChecker.cpp

2
src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp

@ -682,7 +682,7 @@ namespace storm {
for (auto& element : result) { for (auto& element : result) {
element = storm::utility::one<ValueType>() - element; element = storm::utility::one<ValueType>() - element;
} }
return std::move(result);
return std::move(result); // move() required by, e.g., clang 3.8
} }
} }

4
src/storm/modelchecker/reachability/SparseDtmcEliminationModelChecker.cpp

@ -494,7 +494,7 @@ namespace storm {
for (auto state : ~maybeStates | initialStates) { for (auto state : ~maybeStates | initialStates) {
(*checkResult)[state] = result[state]; (*checkResult)[state] = result[state];
} }
return std::move(checkResult);
return std::move(checkResult); // move() required by, e.g., clang 3.8
} }
return std::make_unique<ExplicitQuantitativeCheckResult<ValueType>>(result); return std::make_unique<ExplicitQuantitativeCheckResult<ValueType>>(result);
} }
@ -591,7 +591,7 @@ namespace storm {
for (auto state : ~maybeStates | initialStates) { for (auto state : ~maybeStates | initialStates) {
(*checkResult)[state] = result[state]; (*checkResult)[state] = result[state];
} }
return std::move(checkResult);
return std::move(checkResult); // move() required by, e.g., clang 3.8
} }
return std::make_unique<ExplicitQuantitativeCheckResult<ValueType>>(result); return std::make_unique<ExplicitQuantitativeCheckResult<ValueType>>(result);
} }
Loading…
Cancel
Save