学无先后,达者为师

网站首页 编程语言 正文

【debug】error: no matching function for call to ‘max‘

作者:cxxx17 更新时间: 2022-04-12 编程语言

code:

#include 
max_freq = std::max(GetMaxFreq(), 10);

报错:error: no matching function for call to ‘max’
原因是max传入的两个参数数据类型不一致。

原文链接:https://blog.csdn.net/weixin_42262721/article/details/123409326

栏目分类
最近更新