mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 17:30:12 +08:00
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:
@@ -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 ==
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user