Skip to content

Commit 69cca81

Browse files
authored
Fixed MSVC C2661: no overloaded function takes 2 arguments
Fixed Error C2661 'fmt::v10::vformat': no overloaded function takes 2 arguments for MSVC v17.9.5 (fmt module).
1 parent 4e8640e commit 69cca81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: include/fmt/format-inl.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,6 @@ FMT_API FMT_FUNC auto format_facet<std::locale>::do_put(
147147
}
148148
#endif
149149

150-
FMT_FUNC auto vsystem_error(int error_code, string_view fmt, format_args args)
151-
-> std::system_error {
152-
auto ec = std::error_code(error_code, std::generic_category());
153-
return std::system_error(ec, vformat(fmt, args));
154-
}
155-
156150
namespace detail {
157151

158152
template <typename F>
@@ -1434,6 +1428,12 @@ FMT_FUNC auto vformat(string_view fmt, format_args args) -> std::string {
14341428
return to_string(buffer);
14351429
}
14361430

1431+
FMT_FUNC auto vsystem_error(int error_code, string_view fmt, format_args args)
1432+
-> std::system_error {
1433+
auto ec = std::error_code(error_code, std::generic_category());
1434+
return std::system_error(ec, vformat(fmt, args));
1435+
}
1436+
14371437
namespace detail {
14381438

14391439
template <typename T> struct span {

0 commit comments

Comments
 (0)