Deprecate u8string_view
This commit is contained in:
@@ -1535,7 +1535,8 @@ inline void print(std::FILE* f, const S& format_str, Args&&... args) {
|
||||
|
||||
/**
|
||||
\rst
|
||||
Prints formatted data to ``stdout``.
|
||||
Formats ``args`` according to specifications in ``format_str`` and writes the
|
||||
output to ``stdout``.
|
||||
|
||||
**Example**::
|
||||
|
||||
|
||||
@@ -559,8 +559,7 @@ class buffer_range : public internal::output_range<
|
||||
: internal::output_range<iterator, T>(std::back_inserter(buf)) {}
|
||||
};
|
||||
|
||||
// A UTF-8 string view.
|
||||
class u8string_view : public basic_string_view<char8_t> {
|
||||
class FMT_DEPRECATED u8string_view : public basic_string_view<char8_t> {
|
||||
public:
|
||||
u8string_view(const char* s)
|
||||
: basic_string_view<char8_t>(reinterpret_cast<const char8_t*>(s)) {}
|
||||
@@ -571,8 +570,8 @@ class u8string_view : public basic_string_view<char8_t> {
|
||||
|
||||
#if FMT_USE_USER_DEFINED_LITERALS
|
||||
inline namespace literals {
|
||||
inline u8string_view operator"" _u(const char* s, std::size_t n) {
|
||||
return {s, n};
|
||||
inline basic_string_view<char8_t> operator"" _u(const char* s, std::size_t n) {
|
||||
return {reinterpret_cast<const char8_t*>(s), n};
|
||||
}
|
||||
} // namespace literals
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user