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:
parent
1b7c3644f4
commit
0b65aa39cd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user