Quick Q: Constructor initialization-list evaluation order

Quick A: in the order of declaration in the class.

Recently on SO:

Constructor initialization-list evaluation order

It depends on the order of member variable declaration in the class. So a_ will be the first one, then b_ will be the second one in your example.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.