primitives/one: Corrected return type of '+' and '-' operators

This commit is contained in:
Henry Weller
2018-09-28 14:37:22 +01:00
parent fb173af944
commit 774f76fc66

View File

@ -42,25 +42,25 @@ public:
};
template<class Type>
inline const Type& operator+(const Type& t, const one&)
inline Type operator+(const Type& t, const one&)
{
return t + 1;
}
template<class Type>
inline const Type& operator+(const one&, const Type& t)
inline Type operator+(const one&, const Type& t)
{
return 1 + t;
}
template<class Type>
inline const Type& operator-(const Type& t, const one&)
inline Type operator-(const Type& t, const one&)
{
return t - 1;
}
template<class Type>
inline const Type& operator-(const one&, const Type& t)
inline Type operator-(const one&, const Type& t)
{
return 1 - t;
}