Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-04-06 16:11:46 +0300
committerJacques Lucke <jacques@blender.org>2022-04-06 16:11:46 +0300
commit8897e4a6964b6645b2cf88e1bb7d9470e44362d3 (patch)
treea0c2d72ce392663aa6352fbb885fefbe669eec0e
parent64018d55cf56ba9b5675670774c3508867abbad5 (diff)
improve ownership hint
-rw-r--r--source/blender/blenlib/BLI_virtual_array.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_virtual_array.hh b/source/blender/blenlib/BLI_virtual_array.hh
index bca0eb914a5..56476a2e52b 100644
--- a/source/blender/blenlib/BLI_virtual_array.hh
+++ b/source/blender/blenlib/BLI_virtual_array.hh
@@ -457,6 +457,11 @@ template<typename T, typename GetFunc> class VArrayImpl_For_Func final : public
}
});
}
+
+ bool may_have_ownership() const override
+ {
+ return !std::is_trivially_destructible_v<GetFunc>;
+ }
};
/**