diff --git a/Utilities/StrFmt.h b/Utilities/StrFmt.h index f25616d42f..747d01918d 100644 --- a/Utilities/StrFmt.h +++ b/Utilities/StrFmt.h @@ -225,7 +225,7 @@ namespace fmt { // Both uchar and std::byte are allowed template - concept ByteArray = requires (T& t) { static_cast, std::byte, uchar>&>(std::data(t)[0]); }; + concept ByteArray = requires (T& t) { const_cast, std::byte, uchar>&>(std::data(t)[0]); }; } template