added object_proxy as the holder of the object in object_ptr

This commit is contained in:
2025-02-22 15:39:38 +01:00
parent d0b3ce4231
commit 35f078bbc4
5 changed files with 46 additions and 18 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ public:
if (!obj->get()) {
return utils::failure(make_error(error_code::FailedToFindObject, "Failed to find object of type " + info->get().name() + " with primary key " + std::to_string(pk) + "."));
}
return utils::ok(object::object_ptr<Type>{ obj.release() });
return utils::ok(object::object_ptr<Type>{ obj->release() });
}
template<typename Type>