From 2b77ddbfde8a06f731bd8e2138ce457223b4e1eb Mon Sep 17 00:00:00 2001 From: steve robb Date: Thu, 30 Nov 2023 11:10:15 -0500 Subject: [PATCH] Fix for compile error in FMath::Wrap due to using a check() in a constexpr context. [CL 30016100 by steve robb in ue5-main branch] --- Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h b/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h index 26d2c5b78b0a..423e845c4d09 100644 --- a/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h +++ b/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h @@ -609,7 +609,8 @@ public: template< class T > UE_NODISCARD static constexpr FORCEINLINE T Wrap(const T X, const T Min, const T Max) { - checkSlow(Min <= Max); + // Our asserts are not constexpr-friendly yet + // checkSlow(Min <= Max); T Size = Max - Min; if (Size == 0)