Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
reference to parent inherritance?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Gernot Frisch, post: 2557324"] 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 [URL="http://www.GLBasic.com"]www.GLBasic.com[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
reference to parent inherritance?
Top