Skip to content

Refactor Static to have non-static fields - #936

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_982476163
Sep 21, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_982476163

Conversation

@copybara-service

Copy link
Copy Markdown

Refactor Static to have non-static fields

Make all Static class fields non-static and define a constexpr constructor
for Static. This removes the need for duplicate field definitions
in static_vars.cc and simplifies metadata_bytes() calculation to sizeof(*this).

@copybara-service
copybara-service Bot force-pushed the test_982476163 branch 8 times, most recently from b41ea67 to 05fa209 Compare September 21, 2026 15:37
Make all Static class fields non-static and define a constexpr constructor
for Static. This removes the need for duplicate field definitions
in static_vars.cc and simplifies metadata_bytes() calculation to sizeof(*this).

PiperOrigin-RevId: 985306822
@copybara-service
copybara-service Bot merged commit fef3235 into master Sep 21, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_982476163 branch September 21, 2026 15:51

This branch was successfully deployed

1 active deployment
github-pages fef32359 Deployed Sep 21, 2026 by github-pages[bot] via deploy #2749
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