Skip to content

[math] Remove the pasted ERotation3DMatrixIndex#21592

Merged
guitargeek merged 1 commit intoroot-project:masterfrom
jmcarcell:remove-pasted-enum
Mar 13, 2026
Merged

[math] Remove the pasted ERotation3DMatrixIndex#21592
guitargeek merged 1 commit intoroot-project:masterfrom
jmcarcell:remove-pasted-enum

Conversation

@jmcarcell
Copy link
Contributor

Use a single source for it when needed; more precisely, remove it in files where it's not used. Also prepare for using C++20 where using enum is allowed and is basically what is being done.

@jmcarcell jmcarcell changed the title Remove the pasted ERotation3DMatrixIndex [math] Remove the pasted ERotation3DMatrixIndex Mar 13, 2026
Copy link
Contributor

@silverweed silverweed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup PR! I made a comment about the using enum

Copy link
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I actually like the C++20 "preview" because it tells me immediately that ERotation3DMatrixIndex and Rotation3D::ERotation3DMatrixIndex are 100 % the same.

And as you noted, we have used the pattern before, and I indeed git grepped for __cplusplus when we raised the minimum C++ standard to 17 and was happy that the code got simpler and clearer in some places.

@guitargeek guitargeek merged commit ae3b22f into root-project:master Mar 13, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants