absl::StrFormat – no instance of function template matches the argument list

  abseil, c++, visual-studio-2017

When using absl::StrFormat, I’m getting static code analysis warnings in VisualStudio 2017 (Red underlines). My code builds and runs but I can’t figure out why I’m getting this warning. What could be causing this and is there anything I can do to fix or suppress the red underlines?

Here is a simple example,

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])

Source: Windows Questions C++

LEAVE A COMMENT