Skip to content

Conversation

@dneto0
Copy link
Collaborator

@dneto0 dneto0 commented May 5, 2025

Chromium bans static initializers of class objects.

Wrap the std::array static variables with a function that returns a reference to them.
This is option 2 to remove static initializers, at https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/static_initializers.md#Removing-Static-Initializers

Also, lookup methods update a pointer-to-const pointer.

@dneto0 dneto0 requested a review from alan-baker May 5, 2025 20:42
Chromium bans static initializers of class objects.

Wrap the std::array static variables with a function
that returns a reference to them.
This is option 2 to remove static initializers, at
https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/static_initializers.md#Removing-Static-Initializers

Also, lookup methods update a pointer-to-const pointer.
@dneto0 dneto0 force-pushed the no-static-init branch from bd22163 to 92ec70f Compare May 5, 2025 20:49
@dneto0 dneto0 enabled auto-merge (squash) May 5, 2025 20:49
@dneto0 dneto0 merged commit 9693056 into KhronosGroup:main May 5, 2025
23 checks passed
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.

2 participants