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)