在cpp里写构造函数: 类名::类名(){ xxx; xxx; } 然而,忘记在.h的类里写一个类名()。
/opt/intel/oneapi/dpcpp-ct/2022.2.1/lib/clang/15.0.0/include/__clang_dpct_math.h:27:7: error: 'modf' is missing exception specification 'noexcept'float modf(float a, float *pb);^/usr/lib/llvm-14/include/c++/v1/math.h:994:46: note: previous declaration is ...
This is the error that occurs: Error C2694 ‘std::_Ref_count_obj2<_Ty>::~_Ref_count_obj2(void)’: overriding virtual function has less restrictive exception specification than base class virtual member function ‘std::_Ref_count_base::~_Ref_count_base(void) noexcept’ C:\...