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

C++20 preparation: make operator != non-ambiguous. #2024

Merged
merged 1 commit into from
Oct 11, 2023
Merged

C++20 preparation: make operator != non-ambiguous. #2024

merged 1 commit into from
Oct 11, 2023

Conversation

hzeller
Copy link
Collaborator

@hzeller hzeller commented Oct 10, 2023

C++20 auto-generates the != operator from ==. However, if that operator accepts a potentiallly different type, this might result in an ambiguous operator (-Wambiguous-reversed-operator). This provides the explicitly defined operator.

@hzeller hzeller requested a review from fangism October 10, 2023 19:18
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e76eb27) 92.85% compared to head (cd5d370) 92.85%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2024   +/-   ##
=======================================
  Coverage   92.85%   92.85%           
=======================================
  Files         357      357           
  Lines       26397    26397           
=======================================
  Hits        24510    24510           
  Misses       1887     1887           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

C++20 auto-generates the != operator from ==. However, if that
operator accepts a potentiallly different type, this might result in
an ambiguous operator (-Wambiguous-reversed-operator).
This provides the explicitly defined operator.

While at it: update expectations for smoke tests as pulled
projects changed.
@hzeller hzeller merged commit 5be583b into chipsalliance:master Oct 11, 2023
34 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.

3 participants