Chances of ambiguity in the case of Constructors with default arguments:
Case:1
class complex
{
float real;
float imag;
public:
complex(void);
complex(float a=1.5);
};
Case:2
class complex
{
float real;
float imag;
public:
complex(float a=1.5);
complex(float, float b=2.5);
};
Case:1
class complex
{
float real;
float imag;
public:
complex(void);
complex(float a=1.5);
};
Case:2
class complex
{
float real;
float imag;
public:
complex(float a=1.5);
complex(float, float b=2.5);
};