Commit 1cd0869
PR #22953: Fix const qualifier on status prevents automatic move semantics
Imported from GitHub PR #22953
reason for change - const qualifier on `status` prevents automatic move semantics in return.
When return status; is executed, the compiler cannot invoke the move constructor of `absl::Status` because status is const.
Copybara import of the project:
--
b172231 by Alexander Pivovarov <[email protected]>:
Fix const qualifier on status prevents automatic move semantics
Merging this change closes #22953
FUTURE_COPYBARA_INTEGRATE_REVIEW=#22953 from apivovarov:fix_rnvo b172231
PiperOrigin-RevId: 7306277321 parent 2efc815 commit 1cd0869
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments