type info: revised to support opaque type info objects (contains breaking changes)

This commit is contained in:
Michele Caini
2020-09-16 16:08:23 +02:00
parent 0fb244e381
commit 25a073f20b
22 changed files with 171 additions and 163 deletions

View File

@@ -7,9 +7,9 @@
inline static type_context *context;
template<typename Type>
struct entt::type_index<Type> {
struct entt::type_seq<Type> {
[[nodiscard]] static id_type value() ENTT_NOEXCEPT {
static const entt::id_type value = context->value(type_info<Type>::id());
static const entt::id_type value = context->value(entt::type_hash<Type>::value());
return value;
}
};