G
gara.matt
Hi,
Are nested/inner class allowed to have constructors?
When I try to compile something like
class A{
public:
class B{
public:
B(int a)
{ b =a;}
int b;
}
};
I get the error:
error: expected ',' or '...' before numeric constant on line "B(int
a)"
Are nested/inner class allowed to have constructors?
When I try to compile something like
class A{
public:
class B{
public:
B(int a)
{ b =a;}
int b;
}
};
I get the error:
error: expected ',' or '...' before numeric constant on line "B(int
a)"