meta: update meta_custom_node for consistency
This commit is contained in:
@@ -756,7 +756,7 @@ struct meta_custom {
|
||||
*/
|
||||
template<typename Type>
|
||||
[[nodiscard]] operator Type *() const noexcept {
|
||||
return ((node != nullptr) && (type_hash<std::remove_const_t<Type>>::value() == node->type)) ? static_cast<Type *>(node->value.get()) : nullptr;
|
||||
return ((node != nullptr) && (type_hash<std::remove_const_t<Type>>::value() == node->id)) ? static_cast<Type *>(node->value.get()) : nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -61,7 +61,7 @@ template<typename Type>
|
||||
struct meta_type_node;
|
||||
|
||||
struct meta_custom_node {
|
||||
id_type type{};
|
||||
id_type id{};
|
||||
std::shared_ptr<void> value{};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user