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++
order of evaluation of arguments to constructors
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: 2769121"] What do you think the difference is between "order of construction of member objects" and "evaluation of argument lists"? Does the comma between initialisers in the list look like a comma between function arguments (order of evaluation of which is unspecified)? If so, why doesn't it look like the comma between objects in a declaration statement: int *sA(new A), *sB(new B), *sC(new C); ? OK, I'll stop asking and just say it: the comma between the member initialisers in the constructor initialiser list is the same as the one between objects in a declaration statement -- and has the same trait -- there is a sequence point at each comma. V [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
order of evaluation of arguments to constructors
Top