fmtlib / fmt

A modern formatting library
https://fmt.dev
Other
20.56k stars 2.46k forks source link

Fixed MSVC C2661: no overloaded function takes 2 arguments #3920

Closed matt77hias closed 6 months ago

matt77hias commented 6 months ago

Fixed Error C2661 'fmt::v10::vformat': no overloaded function takes 2 arguments for MSVC v17.9.5 (fmt module).

matt77hias commented 6 months ago

Note that I moved it right underneath FMT_FUNC auto vformat(string_view fmt, format_args args) ;-)

vitaut commented 6 months ago

This looks like an MSVC bug because the function is declared here: https://github.com/fmtlib/fmt/blob/master/include/fmt/format.h#L4370. Could you report it to Microsoft?

matt77hias commented 6 months ago

Summary: https://github.com/fmtlib/fmt/issues/3921#issuecomment-2041454134