mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
Fixup byte array formatter
This commit is contained in:
parent
7fe15f5f8d
commit
70a3c5d440
@ -225,7 +225,7 @@ namespace fmt
|
||||
{
|
||||
// Both uchar and std::byte are allowed
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user