Skip to content

Default operator== definitions in react-native-github#55750

Closed
NickGerleman wants to merge 1 commit intofacebook:mainfrom
NickGerleman:export-D94371201
Closed

Default operator== definitions in react-native-github#55750
NickGerleman wants to merge 1 commit intofacebook:mainfrom
NickGerleman:export-D94371201

Conversation

@NickGerleman
Copy link
Copy Markdown
Contributor

Summary:
Replace explicit operator== implementations with = default where the
operator performs simple memberwise comparison of all data members. The
compiler-generated defaulted operator is equivalent but less error-prone
and easier to maintain as members are added or removed.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D94371201

Summary:
Replace explicit `operator==` implementations with `= default` where the
operator performs simple memberwise comparison of all data members. The
compiler-generated defaulted operator is equivalent but less error-prone
and easier to maintain as members are added or removed.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D94371201
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 25, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Feb 25, 2026

@NickGerleman has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94371201.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @NickGerleman in 5993308

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 25, 2026
zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
Summary:
Pull Request resolved: facebook#55750

Replace explicit `operator==` implementations with `= default` where the
operator performs simple memberwise comparison of all data members. The
compiler-generated defaulted operator is equivalent but less error-prone
and easier to maintain as members are added or removed.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D94371201

fbshipit-source-id: 6510ba4a5c5eca4f8d5c2ca363e4d28df63f58b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants