Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarRect.hpp
diff options
context:
space:
mode:
authorLDA <lda@ldasuku.net>2023-06-26 11:48:27 -0700
committerLDA <lda@ldasuku.net>2023-06-26 11:58:35 -0700
commitc9e889723b7af832322d178975e6e440d6cd3ae5 (patch)
treea8429c30ecf46ed1388df13b614141e73973cd9f /source/core/StarRect.hpp
parent4585c9cafa87cad6b54397af7e9375cc31b72f89 (diff)
resolved most of the compiler warnings/errors under gcc
also update xxhash and tinyformat
Diffstat (limited to 'source/core/StarRect.hpp')
-rw-r--r--source/core/StarRect.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/core/StarRect.hpp b/source/core/StarRect.hpp
index 38bbabc..0e2ba90 100644
--- a/source/core/StarRect.hpp
+++ b/source/core/StarRect.hpp
@@ -52,6 +52,7 @@ public:
Box();
Box(Coord const& min, Coord const& max);
Box(Box const& b);
+ Box& operator=(Box const& b);
template <typename T2>
explicit Box(Box<T2, N> const& b);
@@ -329,6 +330,13 @@ Box<T, N>::Box(Box const& b)
: m_min(b.min()), m_max(b.max()) {}
template <typename T, size_t N>
+Box<T, N>& Box<T, N>::operator=(Box<T, N> const& b) {
+ m_min = b.m_min;
+ m_max = b.m_max;
+ return *this;
+}
+
+template <typename T, size_t N>
template <typename T2>
Box<T, N>::Box(Box<T2, N> const& b)
: m_min(b.min()), m_max(b.max()) {}