diff options
author | Jacques Lucke <jacques@blender.org> | 2022-04-06 16:11:46 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-04-06 16:11:46 +0300 |
commit | 8897e4a6964b6645b2cf88e1bb7d9470e44362d3 (patch) | |
tree | a0c2d72ce392663aa6352fbb885fefbe669eec0e | |
parent | 64018d55cf56ba9b5675670774c3508867abbad5 (diff) |
improve ownership hint
-rw-r--r-- | source/blender/blenlib/BLI_virtual_array.hh | 5 |
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>; + } }; /** |