mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-03 15:49:39 +01:00
string_view::char_type -> value_type (#1539)
This commit is contained in:
@@ -313,7 +313,8 @@ template <typename Char> class basic_string_view {
|
||||
size_t size_;
|
||||
|
||||
public:
|
||||
using char_type = Char;
|
||||
using char_type FMT_DEPRECATED_ALIAS = Char;
|
||||
using value_type = Char;
|
||||
using iterator = const Char*;
|
||||
|
||||
FMT_CONSTEXPR basic_string_view() FMT_NOEXCEPT : data_(nullptr), size_(0) {}
|
||||
@@ -471,7 +472,7 @@ struct is_string : std::is_class<decltype(to_string_view(std::declval<S>()))> {
|
||||
template <typename S, typename = void> struct char_t_impl {};
|
||||
template <typename S> struct char_t_impl<S, enable_if_t<is_string<S>::value>> {
|
||||
using result = decltype(to_string_view(std::declval<S>()));
|
||||
using type = typename result::char_type;
|
||||
using type = typename result::value_type;
|
||||
};
|
||||
|
||||
struct error_handler {
|
||||
|
||||
Reference in New Issue
Block a user