首页 > 解决方案 > 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])

标签: c++visual-studio-2017abseil

解决方案


推荐阅读