I have a legacy template class code which has been used for years. It has the following form for instance
template<typename Type>
class MyTemplateClass
{
public:
MyTemplateClass<Type>()
{}
};
int main()
{
MyTemplateClass<double> myclass;
}
I understand that the above expression is not valid any more from C++20 thanks to the [link][1]
What I want to know now is that what was the difference by writting
MyTemplateClass<Type>()
and
MyTemplateClass()
before c++20 since those two constructor declarations seem do the same thing.