From 9e1abf6d3b89b8901fd639283fa2b45402954932 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 5 Feb 2025 06:00:10 +0100 Subject: fix gcc build due to missing include --- src/anim.cpp | 1 + src/chunk-collision.cpp | 1 + src/chunk-walls.cpp | 1 + src/critter-script-walk.cpp | 1 + src/point.hpp | 4 ++-- 5 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/anim.cpp b/src/anim.cpp index 717b3ee6..db724154 100644 --- a/src/anim.cpp +++ b/src/anim.cpp @@ -1,6 +1,7 @@ #include "anim.hpp" #include "compat/exception.hpp" #include +#include namespace floormat { diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp index 8cc74741..b0170755 100644 --- a/src/chunk-collision.cpp +++ b/src/chunk-collision.cpp @@ -10,6 +10,7 @@ #include "src/hole.hpp" #include "src/wall-atlas.hpp" #include +#include #include #include diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index 7d0bd29b..39faf0bd 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/src/critter-script-walk.cpp b/src/critter-script-walk.cpp index 2402fe74..c0e800e8 100644 --- a/src/critter-script-walk.cpp +++ b/src/critter-script-walk.cpp @@ -7,6 +7,7 @@ #include "search-result.hpp" #include "search-astar.hpp" #include "entity/name-of.hpp" +#include namespace floormat { diff --git a/src/point.hpp b/src/point.hpp index 8d40992b..f0e39aed 100644 --- a/src/point.hpp +++ b/src/point.hpp @@ -30,7 +30,7 @@ struct point constexpr chunk_coords_ chunk3() const; constexpr local_coords local() const; constexpr Vector2b offset() const; - template std::tuple_element_t constexpr get() const; + template typename std::tuple_element::type constexpr get() const; friend Debug& operator<<(Debug& dbg, const point& pt); @@ -59,7 +59,7 @@ constexpr chunk_coords point::chunk() const { return {cx, cy}; } constexpr local_coords point::local() const { return tile; } constexpr Vector2b point::offset() const { return _offset; } -template std::tuple_element_t constexpr point::get() const +template typename std::tuple_element::type constexpr point::get() const { static_assert(N < 2); if constexpr(N == 0) -- cgit v1.2.3