Base: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-20 14:54:51 +02:00
parent 28e0f5e9ff
commit 5610c22cbb
12 changed files with 57 additions and 198 deletions

View File

@@ -34,19 +34,6 @@
using namespace Base;
template <typename float_type>
Line3<float_type>::Line3(const Line3<float_type>& line)
: p1(line.p1)
, p2(line.p2)
{
}
template <typename float_type>
Line3<float_type>::Line3(Line3<float_type>&& line)
{
*this = std::move(line);
}
template <typename float_type>
Line3<float_type>::Line3(const Vector3<float_type>& p1, const Vector3<float_type>& p2)
: p1(p1)
@@ -54,22 +41,6 @@ Line3<float_type>::Line3(const Vector3<float_type>& p1, const Vector3<float_type
{
}
template <typename float_type>
Line3<float_type>& Line3<float_type>::operator= (const Line3<float_type>& line)
{
p1 = line.p1;
p2 = line.p2;
return *this;
}
template <typename float_type>
Line3<float_type>& Line3<float_type>::operator= (Line3<float_type>&& line)
{
p1 = std::move(line.p1);
p2 = std::move(line.p2);
return *this;
}
template <typename float_type>
bool Line3<float_type>::operator== (const Line3<float_type>& line) const
{