feat(Deps/Fmt): update fmt lib to 10.1.1 (#17643)

This commit is contained in:
Winfidonarleyan
2023-11-05 13:15:45 +07:00
committed by GitHub
parent fb83c22dd2
commit c5564e1363
25 changed files with 7426 additions and 5732 deletions

View File

@@ -633,8 +633,11 @@ namespace lfg
bool m_Testing;
};
template <typename T, FMT_ENABLE_IF(std::is_enum_v<T>)>
auto format_as(T f) { return fmt::underlying(f); }
} // namespace lfg
#define sLFGMgr lfg::LFGMgr::instance()
#endif
#endif

View File

@@ -19,6 +19,7 @@
#define PacketUtilities_h__
#include "ByteBuffer.h"
#include "StringFormat.h"
#include "Tuples.h"
#include <string_view>
@@ -295,4 +296,13 @@ namespace WorldPackets
}
}
#endif // PacketUtilities_h__
template<std::size_t MaxBytesWithoutNullTerminator, typename... Validators>
struct fmt::formatter<WorldPackets::String<MaxBytesWithoutNullTerminator, Validators...>> : fmt::formatter<std::string_view>
{
auto format(WorldPackets::String<MaxBytesWithoutNullTerminator, Validators...> const& str, format_context& ctx) const
{
return fmt::formatter<std::string_view>::format(std::string_view(str), ctx);
}
};
#endif // PacketUtilities_h__