From f2d92931ce137e73c8bd3e7c180634dbdb49e3ea Mon Sep 17 00:00:00 2001 From: Dair Grant Date: Sat, 7 Mar 2020 01:46:25 +0000 Subject: [PATCH] Adjust FMT_STRING_RESULT check to gcc 8.4. --- include/fmt/compile.h | 9 +-------- include/fmt/format.h | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 0bb8cb5a..e4b12f34 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -542,7 +542,7 @@ constexpr auto compile(S format_str) -> internal::compiled_format { # endif // __cpp_if_constexpr #endif // FMT_USE_CONSTEXPR -// Compiles the format string which must be a string literal or view. +// Compiles the format string which must be a string literal. template auto compile(const Char (&format_str)[N]) -> internal::compiled_format { @@ -550,13 +550,6 @@ auto compile(const Char (&format_str)[N]) basic_string_view(format_str, N - 1)); } -template -auto compile(const basic_string_view& format_str) - -> internal::compiled_format { - return internal::compiled_format( - format_str); -} - template operator"" _a(const wchar_t* s, #endif // FMT_USE_USER_DEFINED_LITERALS FMT_END_NAMESPACE -#if FMT_GCC_VERSION >= 800 +#if FMT_GCC_VERSION >= 840 # define FMT_STRING_RESULT(s) ()->fmt::basic_string_view> #else # define FMT_STRING_RESULT(s)