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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user