Browse Source

Added constexpr

Jorrit Rouwe 3 years ago
parent
commit
9f97d3dd2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jolt/Core/FixedSizeFreeList.inl

+ 1 - 1
Jolt/Core/FixedSizeFreeList.inl

@@ -121,7 +121,7 @@ void FixedSizeFreeList<Object>::DestructObjectBatch(Batch &ioBatch)
 	if (ioBatch.mFirstObjectIndex != cInvalidObjectIndex)
 	if (ioBatch.mFirstObjectIndex != cInvalidObjectIndex)
 	{
 	{
 		// Call destructors
 		// Call destructors
-		if (!is_trivially_destructible<Object>())
+		if constexpr (!is_trivially_destructible<Object>())
 		{
 		{
 			uint32 object_idx = ioBatch.mFirstObjectIndex;
 			uint32 object_idx = ioBatch.mFirstObjectIndex;
 			do
 			do