Skip to content

Templated VQwSubsystemParity for Sum, Difference, Ratio to use T::operator+, T::operator- etc #66

@wdconinc

Description

@wdconinc

Is your feature request related to a problem? Please describe.
There are a lot of redundant implementations of VQwSubsystemParity::Sum,Different,Ratio in the derived classes.

virtual void Sum(VQwSubsystem *value1, VQwSubsystem *value2) = 0;

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'm always frustrated, but that's neither here nor there.

Describe the solution you'd like
These are not necessary if we inherit from e.g. VQwSubsystemParity and define

virtual void Sum(T* value1, T* value2) { *this = *value1; *this += *value2; }
//etc

Describe alternatives you've considered
Status quo is always an alternative.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions