From 70a3c5d440bfad7cfcdeaacb7a36d29a03db077d Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 17 Jul 2021 20:30:21 +0300 Subject: [PATCH] Fixup byte array formatter --- Utilities/StrFmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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