c++为什么会出现cannot convert parameter 1 from 'const int' to 'const class C &'的报错
errorC2664:'__thiscallC::C(constclassC&)':cannotconvertparameter1from'constint'to'con...
error C2664: '__thiscall C::C(const class C &)' : cannot convert parameter 1 from 'const int' to 'const class C &' Reason: cannot convert from 'const int' to 'const class C' No constructor could take the source type, or constructor overload resolution was ambiguous
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询