meta: no need to check the instance in the dtor wrapper
This commit is contained in:
@@ -395,9 +395,7 @@ struct meta_factory<Type> {
|
||||
auto * const type = internal::meta_info<Type>::resolve();
|
||||
|
||||
type->dtor = [](void *instance) {
|
||||
if(instance) {
|
||||
std::invoke(Func, *static_cast<Type *>(instance));
|
||||
}
|
||||
std::invoke(Func, *static_cast<Type *>(instance));
|
||||
};
|
||||
|
||||
return meta_factory<Type>{};
|
||||
|
||||
Reference in New Issue
Block a user