Merge pull request #111223 from Ivorforce/remove-iterator-include

Replace `std::size` usage with `std_size` to avoid `<iterator>` include.
This commit is contained in:
Thaddeus Crews 2025-10-06 09:06:49 -05:00
commit d1d28c0bcf
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
39 changed files with 67 additions and 66 deletions

View file

@ -158,7 +158,7 @@ static const char *token_names[] = {
};
// Avoid desync.
static_assert(std::size(token_names) == GDScriptTokenizer::Token::TK_MAX, "Amount of token names don't match the amount of token types.");
static_assert(std_size(token_names) == GDScriptTokenizer::Token::TK_MAX, "Amount of token names don't match the amount of token types.");
const char *GDScriptTokenizer::Token::get_name() const {
ERR_FAIL_INDEX_V_MSG(type, TK_MAX, "<error>", "Using token type out of the enum.");