Hi folks,
My friend tells that the following function declaration is illegal.
void Foo(const string& strData = "Default");
My friend argues that it is not legal to provide a default value for a
parameter passed by reference or const reference.
But i do not think so.
I looked up in the TCPPPL but nothing of that sort is explicitly
mentioned(or have i missed it ??? ).
Can someone solve the dispute ?
Thanks and Best Regards,
Senthil.