From 82ab34aa83463179339eb8382edf1c22cacdad61 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 May 2024 15:30:15 +0200 Subject: use array_size instead of std::size/arraySize --- editor/imgui-editors.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor/imgui-editors.cpp') diff --git a/editor/imgui-editors.cpp b/editor/imgui-editors.cpp index 4872f9a2..a2ddbf5b 100644 --- a/editor/imgui-editors.cpp +++ b/editor/imgui-editors.cpp @@ -1,5 +1,6 @@ #include "app.hpp" #include "src/tile-constants.hpp" +#include "compat/array-size.hpp" #include "compat/format.hpp" #include "imgui-raii.hpp" #include "ground-editor.hpp" @@ -83,7 +84,7 @@ void draw_editor_tile_pane_atlas(ground_editor& ed, StringView name, const std:: text(" (selected)"); } const auto len = snformat(buf, "{:d}"_cf, N); - fm_assert(len < std::size(buf)); + fm_assert(len < array_size(buf)); ImGui::SameLine(window_width - ImGui::CalcTextSize(buf).x - style.FramePadding.x - 4*dpi[0]); text({buf, len}); }; -- cgit v1.2.3