mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-21 18:20:04 +00:00
Fix compilation errors due to make_format_args
in gcc 14.1.1 with c++20 (#4042)
This commit is contained in:
parent
c4f6fa7135
commit
9d946a2fc4
@ -569,8 +569,8 @@ using wprintf_args = basic_format_args<wprintf_context>;
|
||||
/// arguments and can be implicitly converted to `printf_args`.
|
||||
template <typename Char = char, typename... T>
|
||||
inline auto make_printf_args(T&... args)
|
||||
-> decltype(make_format_args<basic_printf_context<Char>>(args...)) {
|
||||
return make_format_args<basic_printf_context<Char>>(args...);
|
||||
-> decltype(fmt::make_format_args<basic_printf_context<Char>>(args...)) {
|
||||
return fmt::make_format_args<basic_printf_context<Char>>(args...);
|
||||
}
|
||||
|
||||
template <typename Char> struct vprintf_args {
|
||||
|
@ -6,6 +6,10 @@
|
||||
// For the license information refer to format.h.
|
||||
|
||||
#include "fmt/printf.h"
|
||||
// include <format> if possible for https://github.com/fmtlib/fmt/pull/4042
|
||||
#if FMT_HAS_INCLUDE(<format>) && FMT_CPLUSPLUS > 201703L
|
||||
# include <format>
|
||||
#endif
|
||||
|
||||
#include <cctype>
|
||||
#include <climits>
|
||||
|
Loading…
Reference in New Issue
Block a user