Show differencesHistory of post edits
Posted 01 March 2012 - 01:37 PM
References must be initialized when defined, however this doesn't work for non-static members, thus you must initialize the reference in the class initializer list.
Posted 01 March 2012 - 01:36 PM
References must be initialized. In the case of non-static member references you must initialize them in the constructor's initializer list.