type_info: force constexpr-ness (close #396)
This commit is contained in:
@@ -57,7 +57,8 @@ struct ENTT_TYPE_ID_API type_info {
|
||||
*/
|
||||
#ifdef ENTT_PRETTY_FUNCTION
|
||||
static constexpr ENTT_ID_TYPE id() ENTT_NOEXCEPT {
|
||||
return entt::hashed_string{ENTT_PRETTY_FUNCTION};
|
||||
constexpr auto value = entt::hashed_string::value(ENTT_PRETTY_FUNCTION);
|
||||
return value;
|
||||
}
|
||||
#else
|
||||
static ENTT_ID_TYPE id() ENTT_NOEXCEPT {
|
||||
|
||||
Reference in New Issue
Block a user