At least one parameter type of this binary operator must be the containing type '<typename>'
A definition of a binary operator specifies both parameters with types other than that of the class or structure in which the operator is defined.
When you define an operator in a class or structure, at least one of the parameters must be of the type of that class or structure.
Error ID: BC33021
To correct this error
- Change the type of one or both of the parameters to the type of the class or structure in which the operator is defined.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for