forked from fmtlib/fmt
Simplify FMT_STRING_IMPL
This commit is contained in:
@@ -3451,8 +3451,7 @@ FMT_END_NAMESPACE
|
||||
[] { \
|
||||
/* Use a macro-like name to avoid shadowing warnings. */ \
|
||||
struct FMT_STRING : fmt::compile_string { \
|
||||
using char_type = typename std::remove_cv<std::remove_pointer< \
|
||||
typename std::decay<decltype(s)>::type>::type>::type; \
|
||||
using char_type = fmt::remove_cvref_t<decltype(*s)>; \
|
||||
__VA_ARGS__ FMT_CONSTEXPR \
|
||||
operator fmt::basic_string_view<char_type>() const { \
|
||||
return {s, sizeof(s) / sizeof(char_type) - 1}; \
|
||||
|
Reference in New Issue
Block a user