0001213: FreeCAD Compilation fails on Linux 32 bit

This commit is contained in:
wmayer
2013-08-13 14:08:10 +02:00
parent e23febcf32
commit 2bb8c10fed
4 changed files with 22 additions and 8 deletions

View File

@@ -29,6 +29,7 @@
#else
# include <stdint.h>
#endif
#include <string>
namespace Base {
@@ -60,8 +61,8 @@ public:
/** Operators. */
//@{
Unit& operator *=(const Unit&that) const {return *this * that;}
Unit& operator /=(const Unit&that) const {return *this / that;}
inline Unit& operator *=(const Unit& that);
inline Unit& operator /=(const Unit& that);
Unit operator *(const Unit&) const;
Unit operator /(const Unit&) const;
bool operator ==(const Unit&) const;
@@ -77,6 +78,18 @@ protected:
UnitSignature Sig;
};
inline Unit& Unit::operator *=(const Unit& that)
{
*this = *this * that;
return *this;
}
inline Unit& Unit::operator /=(const Unit& that)
{
*this = *this / that;
return *this;
}
} // namespace Base
#endif // BASE_Unit_H