diff --git a/src/entt/core/type_info.hpp b/src/entt/core/type_info.hpp index da0901afa..2b25d1fa3 100644 --- a/src/entt/core/type_info.hpp +++ b/src/entt/core/type_info.hpp @@ -179,7 +179,7 @@ struct type_info final { * @param rhs A type info object. * @return True if the two type info objects are identical, false otherwise. */ -[[nodiscard]] inline constexpr bool operator==(const type_info &lhs, const type_info &rhs) noexcept { +[[nodiscard]] constexpr bool operator==(const type_info &lhs, const type_info &rhs) noexcept { return lhs.hash() == rhs.hash(); } @@ -189,7 +189,7 @@ struct type_info final { * @param rhs A type info object. * @return True if the two type info objects differ, false otherwise. */ -[[nodiscard]] inline constexpr bool operator!=(const type_info &lhs, const type_info &rhs) noexcept { +[[nodiscard]] constexpr bool operator!=(const type_info &lhs, const type_info &rhs) noexcept { return !(lhs == rhs); } @@ -199,7 +199,7 @@ struct type_info final { * @param rhs A valid type info object. * @return True if the first element is less than the second, false otherwise. */ -[[nodiscard]] inline constexpr bool operator<(const type_info &lhs, const type_info &rhs) noexcept { +[[nodiscard]] constexpr bool operator<(const type_info &lhs, const type_info &rhs) noexcept { return lhs.index() < rhs.index(); } @@ -210,7 +210,7 @@ struct type_info final { * @return True if the first element is less than or equal to the second, false * otherwise. */ -[[nodiscard]] inline constexpr bool operator<=(const type_info &lhs, const type_info &rhs) noexcept { +[[nodiscard]] constexpr bool operator<=(const type_info &lhs, const type_info &rhs) noexcept { return !(rhs < lhs); } @@ -221,7 +221,7 @@ struct type_info final { * @return True if the first element is greater than the second, false * otherwise. */ -[[nodiscard]] inline constexpr bool operator>(const type_info &lhs, const type_info &rhs) noexcept { +[[nodiscard]] constexpr bool operator>(const type_info &lhs, const type_info &rhs) noexcept { return rhs < lhs; } @@ -232,7 +232,7 @@ struct type_info final { * @return True if the first element is greater than or equal to the second, * false otherwise. */ -[[nodiscard]] inline constexpr bool operator>=(const type_info &lhs, const type_info &rhs) noexcept { +[[nodiscard]] constexpr bool operator>=(const type_info &lhs, const type_info &rhs) noexcept { return !(lhs < rhs); }