|
|
@@ -22,6 +22,7 @@ struct type_id {
|
|
|
* @return The numeric representation of the given type.
|
|
|
*/
|
|
|
static constexpr ENTT_ID_TYPE value() ENTT_NOEXCEPT {
|
|
|
+ static_assert(std::is_same_v<Type..., Type...>);
|
|
|
return entt::hashed_string{__FUNCSIG__};
|
|
|
}
|
|
|
#elif defined __GNUC__
|
|
|
@@ -30,6 +31,7 @@ struct type_id {
|
|
|
* @return The numeric representation of the given type.
|
|
|
*/
|
|
|
static constexpr ENTT_ID_TYPE value() ENTT_NOEXCEPT {
|
|
|
+ static_assert(std::is_same_v<Type..., Type...>);
|
|
|
return entt::hashed_string{__PRETTY_FUNCTION__};
|
|
|
}
|
|
|
#endif
|