diff --git a/src/entt/entity/entity.hpp b/src/entt/entity/entity.hpp index e18dfb38b..021abd3a0 100644 --- a/src/entt/entity/entity.hpp +++ b/src/entt/entity/entity.hpp @@ -189,7 +189,7 @@ struct entt_traits: basic_entt_traits> { * @param value The value to convert. * @return The integral representation of the given value. */ -template +template [[nodiscard]] constexpr entt_traits::entity_type to_integral(const Entity value) noexcept { return entt_traits::to_integral(value); } @@ -200,7 +200,7 @@ template * @param value The value to convert. * @return The integral representation of the entity part. */ -template +template [[nodiscard]] constexpr entt_traits::entity_type to_entity(const Entity value) noexcept { return entt_traits::to_entity(value); } @@ -211,7 +211,7 @@ template * @param value The value to convert. * @return The integral representation of the version part. */ -template +template [[nodiscard]] constexpr entt_traits::version_type to_version(const Entity value) noexcept { return entt_traits::to_version(value); }