Error: default parameter given for parameter 1
Posted
by pocoa
on Stack Overflow
See other posts from Stack Overflow
or by pocoa
Published on 2010-05-25T16:14:02Z
Indexed on
2010/05/25
16:21 UTC
Read the original article
Hit count: 365
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.
© Stack Overflow or respective owner