C++ Language/Objects/ConstMembers/ConstDataMembers
Appearance
For data members that are constants or references, you must initialize them in a constructor's "initializer-list", which is written as CRType(int x) : m_iMember(x) {body}
.
C++ Language |
For data members that are constants or references, you must initialize them in a constructor's "initializer-list", which is written as CRType(int x) : m_iMember(x) {body}
.