Why not infer template parameter from constructor?
I think it is not valid because the constructor isn’t always the only point of entry of the class (I am talking about copy constructor and operator=). So suppose you are using your class like this : MyClass m(string s); MyClass *pm; *pm = m; I am not sure if it would be so obvious for … Read more