C++11 introduced the ability to initialize non-static data members in a sane way, finally, hooray!
Using braced initialization, the initial value can be specified in the class declaration (i.e. header file) instead of separately (and repeatedly/duplicately) in the far away constructor definition.
While doing this sweep we should ensure that we are initializing all of our members.
C++11 introduced the ability to initialize non-static data members in a sane way, finally, hooray!
Using braced initialization, the initial value can be specified in the class declaration (i.e. header file) instead of separately (and repeatedly/duplicately) in the far away constructor definition.
While doing this sweep we should ensure that we are initializing all of our members.