I have a project which compiled well years ago,but when I compiled it recently,it gives me the error "use of class template requires template argument list",the code line causes this error is:
wfs_Vec3 m_vCenterSpeed;
The template wfs_Vec3 is provided with default template parameter as follow:
template<typename T = float>
struct wfs_Vec3
{
...
};
My compiler is visual studio 2019 community,I have tried to change C++ Language option to C++17 and C++20,and this error still persists,the odd is when I created a new project and tested this line:
wfs_Vec3 m_vCenterSpeed;
It's all fine and compiled with no error.I didn't change the code since its compiled well years ago,all I can think of is I have updated my visual studio, I absolutely have no clue,can anyone help me?