Hello,
to make it short, why does this not compile?
class B {
public:
int b(void) { return 1;}
}
void f( B x, int i = x.b()) { }
in gcc 3.3 I get error: 'x' was not declared in this scope
But...I just declared x before. Why can't I use it?
Henning
to make it short, why does this not compile?
class B {
public:
int b(void) { return 1;}
}
void f( B x, int i = x.b()) { }
in gcc 3.3 I get error: 'x' was not declared in this scope
But...I just declared x before. Why can't I use it?
Henning
Comment