Wrong code:
void foo(int x = 42, int y = 21)
{
...
}
Correct code:
void foo(int x = 42, int y = 21);
void foo(int x, int y)
{
...
}Source : http://stackoverflow.com/a/4989591
Wrong code:
void foo(int x = 42, int y = 21)
{
...
}
Correct code:
void foo(int x = 42, int y = 21);
void foo(int x, int y)
{
...
}Source : http://stackoverflow.com/a/4989591