3 ms·
Constructors are just functions at the end of the day and they can do anything. Not really practical to decide when to invoke a constructor for the author in a
by mattnewton 2y ago
Constructors are just functions at the end of the day and they can do anything. Not really practical to decide when to invoke a constructor for the author in a language with semantics as complicated as C++. The convention there is to trust the author to be explicit with exactly where they want to point the gun and not try to move it from the author’s feet.