1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Add explicit assignment operator.

This commit is contained in:
Thomas Harte 2024-03-04 14:09:53 -05:00
parent 1b7c3644f4
commit 0b65aa39cd

View File

@ -31,6 +31,12 @@ struct StereoSample {
left = right = value;
}
StereoSample &operator =(const StereoSample &rhs) {
left = rhs.left;
right = rhs.right;
return *this;
}
StereoSample &operator +=(const StereoSample &rhs) {
left += rhs.left;
right += rhs.right;