或者
error C2780: “const _Ty &std::min(const _Ty &,const _Ty &,_Pr)”: 应输入 3 个参数,却提供了 2 个
原因: std::min(a, b) 其中 a 和 b 的变量类型不相同。
解决方法:std::min<float>(a, b);
当然float要根据你的类型定
或者
error C2780: “const _Ty &std::min(const _Ty &,const _Ty &,_Pr)”: 应输入 3 个参数,却提供了 2 个
原因: std::min(a, b) 其中 a 和 b 的变量类型不相同。
解决方法:std::min<float>(a, b);
当然float要根据你的类型定