G
Gernot Frisch
Is there any way to get a reference of parent class in default c'tor?
Like this:
class foo
{
class bar
{
foo& m_f;
public:
bar(const foo* f) : m_f(*f) {}
}
m_bar(this);
};
int main()
{
foo poo;
return 0;
}
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
Like this:
class foo
{
class bar
{
foo& m_f;
public:
bar(const foo* f) : m_f(*f) {}
}
m_bar(this);
};
int main()
{
foo poo;
return 0;
}
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com