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++
Endure order of construction?
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="Victor Bazarov, post: 3950377"] Here you create a temporary object of type 'Spider' (and it conveniently or inconveniently goes away at the closing curly brace). I believe you meant to do BigClass() : A_(), B_(), Spider_(&A_, &B_) {} which should work just fine. As you declared, the members 'A_' and 'B_' are preceding 'Spider_', so it should be fine from the language POV. V [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Endure order of construction?
Top