Rename pragma macros

This commit is contained in:
Victor Zverovich
2024-09-12 19:20:32 -07:00
parent b52fb98846
commit 1782a6eac0
4 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -338,10 +338,10 @@ template <typename CodeUnit> struct codecvt_result {
template <typename CodeUnit>
void write_codecvt(codecvt_result<CodeUnit>& out, string_view in,
const std::locale& loc) {
FMT_CLANG_PRAGMA(diagnostic push)
FMT_CLANG_PRAGMA(diagnostic ignored "-Wdeprecated")
FMT_PRAGMA_CLANG(diagnostic push)
FMT_PRAGMA_CLANG(diagnostic ignored "-Wdeprecated")
auto& f = std::use_facet<std::codecvt<CodeUnit, char, std::mbstate_t>>(loc);
FMT_CLANG_PRAGMA(diagnostic pop)
FMT_PRAGMA_CLANG(diagnostic pop)
auto mb = std::mbstate_t();
const char* from_next = nullptr;
auto result = f.in(mb, in.begin(), in.end(), from_next, std::begin(out.buf),