Replace std::size usage with std_size to avoid <iterator> include.

This commit is contained in:
Lukas Tenbrink
2025-10-03 20:02:38 +02:00
parent 6d33ad2917
commit 1db0a60dc0
40 changed files with 69 additions and 66 deletions

View File

@ -52,7 +52,7 @@
using Microsoft::WRL::ComPtr;
#define ARRAY_SIZE(a) std::size(a)
#define ARRAY_SIZE(a) std_size(a)
class RenderingContextDriverD3D12 : public RenderingContextDriver {
ComPtr<ID3D12DeviceFactory> device_factory;

View File

@ -3845,7 +3845,7 @@ void RasterizerSceneGLES3::_render_uv2(const PagedArray<RenderGeometryInstance *
GL_COLOR_ATTACHMENT2,
GL_COLOR_ATTACHMENT3
};
glDrawBuffers(std::size(draw_buffers), draw_buffers);
glDrawBuffers(std_size(draw_buffers), draw_buffers);
glClearColor(0.0, 0.0, 0.0, 0.0);
RasterizerGLES3::clear_depth(0.0);

View File

@ -33,6 +33,8 @@
#include "core/templates/hash_map.h"
#include "core/templates/local_vector.h"
#include <iterator>
/// An unordered map that splits elements between a fast-access vector of LinearCount consecutively
/// indexed elements, and a slower-access map holding sparse indexes larger than LinearCount.
///

View File

@ -36,8 +36,6 @@
#include "core/os/time.h"
#include "core/variant/dictionary.h"
#include <iterator>
#include <SDL3/SDL.h>
#include <SDL3/SDL_error.h>
#include <SDL3/SDL_events.h>

View File

@ -46,7 +46,7 @@
#include "thirdparty/swappy-frame-pacing/swappyVk.h"
#endif
#define ARRAY_SIZE(a) std::size(a)
#define ARRAY_SIZE(a) std_size(a)
#define PRINT_NATIVE_COMMANDS 0