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="Rune Allnor, post: 3950417"] Thanks, everyone, for the input. I want constant pointers to non-constant objects in the Spider class. Once A_ and B_ have been constructed, their addresses will not change for the lifetime of the instance of BigClass. The states of all the variables will change, though. Apart from that, I am a bit confused: Is it the order of declarations of the variables in BigClass that determines the order the constructors will be called? Would something change if the BigClass constructor was called as BigClass::BigClass() : B_(), A_() ? And yes, I did type the code straight into the newsreader. Rune [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Endure order of construction?
Top