Hacker News new | ask | show | jobs
by edflsafoiewq 10 days ago
IIRC, one reason C++ uses overloading for all constructors is if the construction occurs in a template, the caller can select the constructors from outside by eg passing the correct arguments. If the constructor were named, there would be no way to pass in the name from outside the template.
1 comments

Yes, this is what I refer to as 'forcing all object creation to be routed through the "constructor" concept'.