Skip to content

Commit

Permalink
type_info: drop redundant inline
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jan 21, 2025
1 parent 399ca81 commit 03f704d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/entt/core/type_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand All @@ -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);
}

Expand All @@ -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();
}

Expand All @@ -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);
}

Expand All @@ -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;
}

Expand All @@ -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);
}

Expand Down

0 comments on commit 03f704d

Please sign in to comment.