mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Workaround a bogus Qt Creator warning
This commit is contained in:
@ -3644,8 +3644,10 @@ FMT_END_NAMESPACE
|
|||||||
FMT_CONSTEXPR operator fmt::basic_string_view<char_type>() const { \
|
FMT_CONSTEXPR operator fmt::basic_string_view<char_type>() const { \
|
||||||
return {s, sizeof(s) / sizeof(char_type) - 1}; \
|
return {s, sizeof(s) / sizeof(char_type) - 1}; \
|
||||||
} \
|
} \
|
||||||
}; \
|
} result; \
|
||||||
return str{}; \
|
/* Suppress Qt Creator warning about unused operator. */ \
|
||||||
|
(void)static_cast<fmt::basic_string_view<str::char_type>>(result); \
|
||||||
|
return result; \
|
||||||
}()
|
}()
|
||||||
|
|
||||||
#if defined(FMT_STRING_ALIAS) && FMT_STRING_ALIAS
|
#if defined(FMT_STRING_ALIAS) && FMT_STRING_ALIAS
|
||||||
|
Reference in New Issue
Block a user