From 8897e4a6964b6645b2cf88e1bb7d9470e44362d3 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 6 Apr 2022 15:11:46 +0200 Subject: improve ownership hint --- source/blender/blenlib/BLI_virtual_array.hh | 5 +++++ 1 file changed, 5 insertions(+) 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 class VArrayImpl_For_Func final : public } }); } + + bool may_have_ownership() const override + { + return !std::is_trivially_destructible_v; + } }; /** -- cgit v1.2.3