References must always be initialized, in the constructor for the class.
A class member of reference type must have an initializer provided in all constructors for that class.
This means you can't depend on the compiler to generate constructors for such a class, because it has no way of knowing how to initialize the references.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|