mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Fix naming
This commit is contained in:
@@ -600,15 +600,15 @@ struct has_to_string_view<
|
|||||||
T, void_t<decltype(detail::to_string_view(std::declval<T>()))>>
|
T, void_t<decltype(detail::to_string_view(std::declval<T>()))>>
|
||||||
: std::true_type {};
|
: std::true_type {};
|
||||||
|
|
||||||
template <typename CharT, CharT... C> struct string_literal {
|
template <typename Char, Char... C> struct string_literal {
|
||||||
static constexpr CharT value[sizeof...(C)] = {C...};
|
static constexpr Char value[sizeof...(C)] = {C...};
|
||||||
constexpr operator basic_string_view<CharT>() const {
|
constexpr operator basic_string_view<Char>() const {
|
||||||
return {value, sizeof...(C)};
|
return {value, sizeof...(C)};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#if FMT_CPLUSPLUS < 201703L
|
#if FMT_CPLUSPLUS < 201703L
|
||||||
template <typename CharT, CharT... C>
|
template <typename Char, Char... C>
|
||||||
constexpr CharT string_literal<CharT, C...>::value[sizeof...(C)];
|
constexpr Char string_literal<Char, C...>::value[sizeof...(C)];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum class type {
|
enum class type {
|
||||||
|
Reference in New Issue
Block a user