Fix unused type alias warning from clang.
This commit is contained in:
parent
dac909b1dd
commit
566ef6ef95
@ -3548,9 +3548,8 @@ FMT_END_NAMESPACE
|
|||||||
[]() -> fmt::basic_string_view<fmt::remove_cvref_t<decltype(*s)>> { \
|
[]() -> fmt::basic_string_view<fmt::remove_cvref_t<decltype(*s)>> { \
|
||||||
/* Use a macro-like name to avoid shadowing warnings. */ \
|
/* Use a macro-like name to avoid shadowing warnings. */ \
|
||||||
struct FMT_COMPILE_STRING : fmt::compile_string { \
|
struct FMT_COMPILE_STRING : fmt::compile_string { \
|
||||||
using char_type = fmt::remove_cvref_t<decltype(*s)>; \
|
|
||||||
__VA_ARGS__ FMT_CONSTEXPR \
|
__VA_ARGS__ FMT_CONSTEXPR \
|
||||||
operator fmt::basic_string_view<char_type>() const { \
|
operator fmt::basic_string_view<fmt::remove_cvref_t<decltype(*s)>>() const { \
|
||||||
/* FMT_STRING only accepts string literals. */ \
|
/* FMT_STRING only accepts string literals. */ \
|
||||||
return fmt::internal::literal_to_view(s); \
|
return fmt::internal::literal_to_view(s); \
|
||||||
} \
|
} \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user