Skip to content

Fix CRP188 equal operator#47

Open
sacereda wants to merge 1 commit intoaja-video:releasefrom
sacereda:fix-crp188
Open

Fix CRP188 equal operator#47
sacereda wants to merge 1 commit intoaja-video:releasefrom
sacereda:fix-crp188

Conversation

@sacereda
Copy link
Copy Markdown

CRP:188::operator== should be const.
MSVC complains when trying to do something like:

CRP188 r0(0);
CRP188 r1(0);
bool b = r0 == r1;

error C2666: 'CRP188::operator ==': overloaded functions have similar conversions
ajantv2\includes\ntv2rp188.h(67): note: could be 'bool CRP188::operator ==(const CRP188 &)'
ajantv2\includes\ntv2rp188.h(67): note: or 'bool CRP188::operator ==(const CRP188 &)' [synthesized expression 'y == x']
note: while trying to match the argument list '(CRP188, CRP188)'

paulh-aja pushed a commit that referenced this pull request May 5, 2025
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