diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2025-02-05 06:00:10 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2025-02-05 06:22:44 +0100 |
| commit | 9e1abf6d3b89b8901fd639283fa2b45402954932 (patch) | |
| tree | 2e3826841c5db5cbf105ef0a6fc719a8a32926a6 /src/point.hpp | |
| parent | 4874a5d027ce94df3e045daf63934d652f976a0c (diff) | |
fix gcc build due to missing include <utility>
Diffstat (limited to 'src/point.hpp')
| -rw-r--r-- | src/point.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<size_t N> std::tuple_element_t<N, point> constexpr get() const; + template<size_t N> typename std::tuple_element<N, point>::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<size_t N> std::tuple_element_t<N, point> constexpr point::get() const +template<size_t N> typename std::tuple_element<N, point>::type constexpr point::get() const { static_assert(N < 2); if constexpr(N == 0) |
