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]
This commit is contained in:
steve robb
2023-11-30 11:10:15 -05:00
parent 823178c546
commit 2b77ddbfde

View File

@@ -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)