我使用的是VS2019 (16.11.3)和Spdlog 1.9.2。
这是我使用的代码:
auto logger = std::make_shared<spdlog::logger>("CORE", std::begin(sinks), std::end(sinks));
logger->log(spdlog::level::info, "This works");
std::string test = "testtest";
logger->log(spdlog::level::info, "This does not {}", test);代码可以正确编译和工作,但是VS2019的智能感知会给出以下错误:couldn't match type fmt::format_string<Args...> against const char[17]:

我已经删除了我的.vs文件夹,并重新启动了Visual Studio,但是没有用。
我还能做什么?我是不是明显漏掉了什么?
提前谢谢。
发布于 2021-10-11 09:17:57
错误的原因是函数参数不匹配。函数的匹配参数类型已经显示在您给出的图片中。您可以参考和修改您的参数列表。
https://stackoverflow.com/questions/69492885
复制相似问题