diff options
Diffstat (limited to 'source/core/StarRect.hpp')
-rw-r--r-- | source/core/StarRect.hpp | 8 |
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()) {} |