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

Replace all operators overloaded as member functions with non-member overloads. #25

Open
edanor opened this issue Jan 20, 2016 · 0 comments

Comments

@edanor
Copy link
Owner

edanor commented Jan 20, 2016

Originally reported by: edanor (Bitbucket: edanor, GitHub: edanor)


Except operators using scalar LHS operand, all overloaded operators are implemented as members in specialized classes.

Because of that it is necessary to both define operators in abstract interface and then re-define them in every class. This additional override is exactly the same as the interface function. Defining all operators as non-member will reduce code size and code repetition.

What needs to be considered is the overhead of such operators.

This issue relates directly to Issue #25


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant