Here is my class definition:
class MyClass {
public:
void test(int val = 0);
}
void MyClass::test(int val = 0) {
//
}
When I try to compile this code I get the error: "default parameter given for parameter 1"
It's just a simple function, I don't know what's wrong. I'm using Eclipse + MinGW.