1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 19:52:37 +01:00

Fixup byte array formatter

This commit is contained in:
Eladash 2021-07-17 20:30:21 +03:00 committed by Megamouse
parent 7fe15f5f8d
commit 70a3c5d440

View File

@ -225,7 +225,7 @@ namespace fmt
{ {
// Both uchar and std::byte are allowed // Both uchar and std::byte are allowed
template <typename T> template <typename T>
concept ByteArray = requires (T& t) { static_cast<const std::conditional_t<std::is_same_v<decltype(std::as_const(t[0])), const std::byte&>, std::byte, uchar>&>(std::data(t)[0]); }; concept ByteArray = requires (T& t) { const_cast<std::conditional_t<std::is_same_v<decltype(std::as_const(t[0])), const std::byte&>, std::byte, uchar>&>(std::data(t)[0]); };
} }
template <fmt::ByteArray T> template <fmt::ByteArray T>