Skip to content

Commit

Permalink
add forgotten inline in std::abs() replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Oct 10, 2022
1 parent d80fa74 commit b681b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magnum/Math/TypeTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ namespace Implementation {
template<class T> struct TypeTraitsFloatingPoint: TypeTraitsName<T> {
TypeTraitsFloatingPoint() = delete;

static constexpr T abs(T x) { return x < 0 ? -x : x; }
static constexpr inline T abs(T x) { return x < 0 ? -x : x; }
static CORRADE_CONSTEXPR14 bool equals(T a, T b);
static CORRADE_CONSTEXPR14 bool equalsZero(T a, T epsilon);
};
Expand Down

0 comments on commit b681b9c

Please sign in to comment.