Indeed, it should be deprecated everywhere, because it is not as clear as:
int sum(int i, int j)
{
return i+j;
}
... but I assume that it is absent in C ++, especially because it is very similar to (and you can confuse) the initialization performed in the constructor:
void MyClass::MyClass():myVar(5)
{
}
source
share