Daily Archives: August 27, 2017


code
Syntax [crayon-5daeff994f911120632920/] Starting with C++11, a constructor can call another constructor of the same class. Delegating constructors cannot be recursive. Delegate in cases where the delegation makes sense eg. multiple constructors need to call the same function (checks, init etc.). For member initialization, use the in-class member initializer feature instead. […]

Classes: Delegating constructors