diff --git a/src/array.h b/src/array.h index 1574fb93..f6c64a80 100644 --- a/src/array.h +++ b/src/array.h @@ -416,7 +416,7 @@ namespace etl template bool operator <=(const etl::array& lhs, const etl::array& rhs) { - return !operator >(lhs, rhs); + return !(lhs > rhs); } //************************************************************************* @@ -428,7 +428,7 @@ namespace etl //************************************************************************* bool operator >(const etl::array& lhs, const etl::array& rhs) { - return operator <(rhs, lhs); + return (rhs < lhs); } //************************************************************************* @@ -440,21 +440,21 @@ namespace etl template bool operator >=(const etl::array& lhs, const etl::array& rhs) { - return !operator <(lhs, rhs); + return !(lhs < rhs); } //************************************************************************* /// Gets a reference to an element in the array. ///\tparam I The index. ///\tparam T The type. - ///\tparam N The array size. + ///\tparam MAXN The array size. ///\param a The array. ///\return A reference to the element //************************************************************************* - template - inline T& get(array& a) + template + inline T& get(array& a) { - STATIC_ASSERT(I < N, "Index out of bounds"); + STATIC_ASSERT(I < MAXN, "Index out of bounds"); return a[I]; } @@ -462,14 +462,14 @@ namespace etl /// Gets a const reference to an element in the array. ///\tparam I The index. ///\tparam T The type. - ///\tparam N The array size. + ///\tparam MAXN The array size. ///\param a The array. ///\return A const reference to the element //************************************************************************* - template - inline const T& get(const array& a) + template + inline const T& get(const array& a) { - STATIC_ASSERT(I < N, "Index out of bounds"); + STATIC_ASSERT(I < MAXN, "Index out of bounds"); return a[I]; } }