Normalizing argument types of CEarthAngle comparison and arithmetic operators:

argument type should be same type as the this pointer.
This commit is contained in:
Mathew Sutcliffe
2014-01-14 00:51:41 +00:00
parent f156916c0c
commit a23c9e3f07
2 changed files with 9 additions and 9 deletions

View File

@@ -94,7 +94,7 @@ namespace BlackMisc
*/
template <class LATorLON> int CEarthAngle<LATorLON>::compareImpl(const CValueObject &otherBase) const
{
const auto &other = static_cast<const LATorLON &>(otherBase);
const auto &other = static_cast<const CEarthAngle &>(otherBase);
if (*this < other) { return -1; }
else if (*this > other) { return 1; }