c++ - absl::StrFormat - 没有函数模板的实例与参数列表匹配
问题描述
使用absl::StrFormat时,我在 VisualStudio 2017 中收到静态代码分析警告(红色下划线)。我的代码可以构建并运行,但我不知道为什么会收到此警告。什么可能导致这种情况,我可以做些什么来修复或抑制红色下划线?
这是一个简单的例子,
absl::StrFormat("hello %s", "world");
no instance of function template "absl::lts_20210324::StrFormat" matches the argument list argument types are: (const char[9], const char[6])
解决方案
推荐阅读
- python - 在 centOS 7 中安装 pip
- javascript - Bot 总是发送相同的响应 | 不和谐.js
- javascript - JavaScript将对象数组添加到特定键
- java - 使用 Apache Camel 对 *.bai.asc 文件进行 PGP 解密
- node.js - if-else 无法在 Typescript 中输入检查
- android - 如何创建一个从多个列表中获取属性的小部件列表?
- python - Discord - 将消息从频道实时发送到我的网站
- reactjs - 带有 JSON 数据的 Redux Store 的初始状态?
- adblock - 如何仅过滤 youtube.com 页面而不是域的 Adblock?
- reactjs - 我怎么能等待我的回应 - 在我的模拟函数中的开玩笑测试