mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
@@ -321,14 +321,13 @@ constexpr const size_t codecvt_result<CodeUnit>::max_size;
|
|||||||
template <typename CodeUnit>
|
template <typename CodeUnit>
|
||||||
void write_codecvt(codecvt_result<CodeUnit>& out, string_view in_buf,
|
void write_codecvt(codecvt_result<CodeUnit>& out, string_view in_buf,
|
||||||
const std::locale& loc) {
|
const std::locale& loc) {
|
||||||
using codecvt = std::codecvt<CodeUnit, char, std::mbstate_t>;
|
|
||||||
#if FMT_CLANG_VERSION
|
#if FMT_CLANG_VERSION
|
||||||
# pragma clang diagnostic push
|
# pragma clang diagnostic push
|
||||||
# pragma clang diagnostic ignored "-Wdeprecated"
|
# pragma clang diagnostic ignored "-Wdeprecated"
|
||||||
auto& f = std::use_facet<codecvt>(loc);
|
auto& f = std::use_facet<std::codecvt<CodeUnit, char, std::mbstate_t>>(loc);
|
||||||
# pragma clang diagnostic pop
|
# pragma clang diagnostic pop
|
||||||
#else
|
#else
|
||||||
auto& f = std::use_facet<codecvt>(loc);
|
auto& f = std::use_facet<std::codecvt<CodeUnit, char, std::mbstate_t>>(loc);
|
||||||
#endif
|
#endif
|
||||||
auto mb = std::mbstate_t();
|
auto mb = std::mbstate_t();
|
||||||
const char* from_next = nullptr;
|
const char* from_next = nullptr;
|
||||||
|
Reference in New Issue
Block a user