|
* Christopher:
What causes this kind of warning to occur? why is the compiler forcing
some order of initialization in an initializer list?
The language requires that sub-objects (bases and data members) are
initialized in the order they are declared. The order specified in an
initializer list does not matter. A compiler may warn you that you will
not get the order you have used in an initializer list.
To avoid such warnings, use the declaration order in every initializer list.
Cheers, & hth.,
- Alf
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
.
|