error: no member named 'enumerate' in namespace 'std::ranges::views'

https://libcxx.llvm.org/Status/Cxx23.html

Workaround until clang 23.
Use the same construct as older code in this file.

Index: rts/Sim/Units/Unit.cpp
--- rts/Sim/Units/Unit.cpp.orig
+++ rts/Sim/Units/Unit.cpp
@@ -964,11 +964,12 @@ static auto SplitResourcePackIntoPositiveNegative (con
 {
 	SResourcePack positive {0.0f}, negative {0.0f};
 
-	for (auto [resourceID, value] : std::views::enumerate (pack)) {
+	for (int i = 0; i < SResourcePack::MAX_RESOURCES; ++i) {
+		const auto value = pack[i];
 		if (value < 0.0f)
-			negative[resourceID] = -value;
+			negative[i] = -value;
 		else
-			positive[resourceID] = value;
+			positive[i] = value;
 	}
 
 	return std::make_pair (positive, negative);
