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 "missing" member being declared right before this use.
  • Loading branch information
matt77hias committed Apr 7, 2024
1 parent 6a318b0 commit b988546
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -4396,7 +4396,9 @@ template <typename Locale, typename... T,
FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
-> std::string {
return fmt::vformat(loc, string_view(fmt), fmt::make_format_args(args...));
// DIVERGENCE BEGIN - Worked around error C2039: 'vformat': is not a member of 'fmt'
return vformat(loc, string_view(fmt), fmt::make_format_args(args...));
// DIVERGENCE END
}

template <typename OutputIt, typename Locale,
Expand Down

0 comments on commit b988546

Please sign in to comment.