Skip to content

Commit

Permalink
Worked around error C2039: 'vformat': is not a member of 'fmt'
Browse files Browse the repository at this point in the history
This error is present upon building fmt as a static library with C++ modules.
This error is not present upon building fmt as a static library without C++ modules.
This workaround should not be needed due to the `#include "format.h"` in `format-inl.h`.
  • Loading branch information
matt77hias committed Apr 7, 2024
1 parent 6e7e9ff commit 6a318b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/fmt/format-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ FMT_API FMT_FUNC auto format_facet<std::locale>::do_put(
}
#endif

// DIVERGENCE BEGIN - Worked around error C2039: 'vformat': is not a member of 'fmt'
FMT_API auto vformat(string_view fmt, format_args args) -> std::string;
// DIVERGENCE END

FMT_FUNC auto vsystem_error(int error_code, string_view fmt, format_args args)
-> std::system_error {
auto ec = std::error_code(error_code, std::generic_category());
Expand Down

0 comments on commit 6a318b0

Please sign in to comment.