From 6a318b0924354697d72be9d066a13a1d18a5460d Mon Sep 17 00:00:00 2001 From: Matthias Moulin Date: Sun, 7 Apr 2024 13:15:33 +0200 Subject: [PATCH] Worked around error C2039: 'vformat': is not a member of 'fmt' 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`. --- include/fmt/format-inl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 5a9afd1ff35a..dfd96b49b54e 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -147,6 +147,10 @@ FMT_API FMT_FUNC auto format_facet::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());