Code: Select all
dimension2d<T>& operator+=(const dimension2d<T>& other)
{
Width *= other.Width;
Height *= other.Height;
return *this;
}
And this is how I expect it to work:
Code: Select all
dimension2d<T>& operator+=(const dimension2d<T>& other)
{
Width += other.Width;
Height += other.Height;
return *this;
}