浏览代码
Comment explaining need for std::move
main
Matthias Volk
6 年前
找不到此签名对应的密钥
GPG 密钥 ID: 83A57678F739FCD3
共有
2 个文件被更改,包括
3 次插入 和
3 次删除
-
src/storm/modelchecker/prctl/helper/SparseMdpPrctlHelper.cpp
-
src/storm/modelchecker/reachability/SparseDtmcEliminationModelChecker.cpp
|
|
|
@ -682,7 +682,7 @@ namespace storm { |
|
|
|
for (auto& element : result) { |
|
|
|
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) { |
|
|
|
(*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); |
|
|
|
} |
|
|
|
@ -591,7 +591,7 @@ namespace storm { |
|
|
|
for (auto state : ~maybeStates | initialStates) { |
|
|
|
(*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); |
|
|
|
} |
|
|
|
|