Quantcast
Channel: Comments on: 11.4 — Constructors and initialization of derived classes
Viewing all articles
Browse latest Browse all 159

By: Alex

$
0
0

This warning will occur (for compilers that support it) any time you initialize class members in a different order than in which they are defined in the class (or, in this case, with the base class constructor called first). It’s not really specific to construction of derived classes, but rather to all classes.


Viewing all articles
Browse latest Browse all 159

Trending Articles