Codechange: replace cpp_lengthof with safe alternatives

This commit is contained in:
Rubidium
2024-04-07 15:54:24 +02:00
committed by rubidium42
parent a1a01e21cf
commit c377c4740d
3 changed files with 3 additions and 11 deletions

View File

@@ -2380,8 +2380,8 @@ private:
}
};
static_assert(MAX_CARGOES >= cpp_lengthof(IndustrySpec, produced_cargo));
static_assert(MAX_CARGOES >= cpp_lengthof(IndustrySpec, accepts_cargo));
static_assert(MAX_CARGOES >= std::tuple_size_v<decltype(IndustrySpec::produced_cargo)>);
static_assert(MAX_CARGOES >= std::tuple_size_v<decltype(IndustrySpec::accepts_cargo)>);
Dimension CargoesField::legend; ///< Dimension of the legend blob.
Dimension CargoesField::cargo_border; ///< Dimensions of border between cargo lines and industry boxes.