removed operator= and copy ctor from classes where they only duplicated the behaviour of the default implementations that C++ generates automatically

This commit is contained in:
Mathew Sutcliffe
2013-08-19 03:21:12 +01:00
parent a6f89ce9ea
commit 21ca361bc1
32 changed files with 2 additions and 367 deletions

View File

@@ -18,14 +18,6 @@ template <class MU, class PQ> CPhysicalQuantity<MU, PQ>::CPhysicalQuantity(doubl
{
}
/*
* Copy constructor
*/
template <class MU, class PQ> CPhysicalQuantity<MU, PQ>::CPhysicalQuantity(const CPhysicalQuantity &other) :
m_value(other.m_value), m_unit(other.m_unit)
{
}
/*
* Equal operator ==
*/
@@ -44,18 +36,6 @@ template <class MU, class PQ> bool CPhysicalQuantity<MU, PQ>::operator !=(const
return !((*this) == other);
}
/*
* Assignment operator =
*/
template <class MU, class PQ> CPhysicalQuantity<MU, PQ>& CPhysicalQuantity<MU, PQ>::operator=(const CPhysicalQuantity<MU, PQ> &other)
{
if (this == &other) return *this;
this->m_value = other.m_value;
this->m_unit = other.m_unit;
return *this;
}
/*
* Plus operator
*/