Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR #22953: Fix const qualifier on status prevents automatic move semantics #23055

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

copybara-service[bot]
Copy link

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

…ntics

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

COPYBARA_INTEGRATE_REVIEW=#22953 from apivovarov:fix_rnvo b172231
PiperOrigin-RevId: 730686035
@copybara-service copybara-service bot merged commit b613a53 into main Feb 25, 2025
@copybara-service copybara-service bot deleted the test_730627732 branch February 25, 2025 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant