Tutorial by Examples

Referring to non-static members in initializer lists before the constructor has started executing can result in undefined behavior. This results since not all members are constructed at this time. From the standard draft: §12.7.1: For an object with a non-trivial constructor, referring to any no...

Page 1 of 1