GCC 9 warns about deprecation of implicit copy ctor:
- Group Reviewers
- R331:0e4880ea9d9e: Fix warnings "implicitly-declared Rect& Rect::operator=(const Rect&) is…
Compiles on my gcc 8.3.1. GCC 9 is not tested, the solution is stolen from Internet.
this is a tricky one, on one hand, yes this fixes the warning and behaves like it used to, so that's "good"
On the other hand introduces an imbalance in which the copy constructor calls normalize but the assignment operator doesn't, think that's "bad"
What do you think about actually implementing the operator= and calling normalize in it?