Using ReSharper with C++17, and I enabled many of the warnings just to see what my project warns me about. I get this:
Declaring a parameter with a default argument is disallowed[fuchsia-default-arguments]
The code in question is the constructor:
class Point2D
{
public:
explicit Point2D(double x = 0.0, double y = 0.0);
};
I'm wondering why default arguments would be considered bad/poor/worthy of a warning? Does anyone have any code examples proving this a viable warning?