Browse Source
Comment explaining need for std::move
tempestpy_adaptions
Matthias Volk
4 years ago
No known key found for this signature in database
GPG Key ID: 83A57678F739FCD3
2 changed files with
3 additions and
3 deletions
-
src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp
-
src/storm/modelchecker/reachability/SparseDtmcEliminationModelChecker.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
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
@ -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); |
|
|
} |
|
|
} |