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="Francesco S. Carta, post: 3950446"] You're welcome. Then you should declare both the Spider's constructor arguments and its members as "A * const". Refer to the following FAQ: [URL]http://www.parashift.com/c++-faq-lite/const-correctness.html#faq-18.5[/URL] Fine, but until you get really accustomed with C++, it's better to post tested code - or, at least, add a note about that, telling that the code was typed on the fly. You risk to raise misunderstanding and harsh replies, otherwise. Luckily, this wasn't the case, but a couple of "bugs" in your original code would have been not there if you tried to compile it. Take your time and dig through all the FAQs. They're really worth it, lots of things will become clearer then. Cheers, Francesco [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Endure order of construction?
Top