1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +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
+6
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;