A copy constructor is needed for CPhysicalQuantity to fix an MSVC2010 linker error introduced by the previous commit.

refs #84
This commit is contained in:
Mathew Sutcliffe
2014-01-14 00:46:24 +00:00
parent db4c05dd9f
commit f156916c0c
2 changed files with 16 additions and 0 deletions

View File

@@ -20,6 +20,16 @@ namespace BlackMisc
// void // void
} }
/*
* Copy constructor
* (The implicitly generated copy constructor would suffice, but for what seems to be a bug in MSVC2010 template instantiation)
*/
template <class MU, class PQ> CPhysicalQuantity<MU, PQ>::CPhysicalQuantity(const CPhysicalQuantity &other) :
m_value(other.m_value), m_unit(other.m_unit)
{
// void
}
/* /*
* Equal operator == * Equal operator ==
*/ */

View File

@@ -61,6 +61,12 @@ namespace BlackMisc
*/ */
CPhysicalQuantity(double value, const MU &unit); CPhysicalQuantity(double value, const MU &unit);
/*!
* \brief Copy constructor
* \param other
*/
CPhysicalQuantity(const CPhysicalQuantity &other);
/*! /*!
* \brief Rounded value as string * \brief Rounded value as string
* \param i18n * \param i18n