[Bf-blender-cvs] [7106fe299e5] temp-virtual-array-value-type: cleanup

Jacques Lucke noreply at git.blender.org
Sun Oct 31 14:28:45 CET 2021


Commit: 7106fe299e581b9d0b06a565bb5dfd35467868bc
Author: Jacques Lucke
Date:   Sun Oct 31 14:06:48 2021 +0100
Branches: temp-virtual-array-value-type
https://developer.blender.org/rB7106fe299e581b9d0b06a565bb5dfd35467868bc

cleanup

===================================================================

M	source/blender/functions/FN_generic_virtual_array.hh

===================================================================

diff --git a/source/blender/functions/FN_generic_virtual_array.hh b/source/blender/functions/FN_generic_virtual_array.hh
index 2205607ef8c..8fd010de253 100644
--- a/source/blender/functions/FN_generic_virtual_array.hh
+++ b/source/blender/functions/FN_generic_virtual_array.hh
@@ -111,7 +111,7 @@ class GVArrayCommon {
    * See #VArrayCommon for more information. The inline buffer is a bit larger here, because
    * generic virtual array implementations often require a bit more space than typed ones.
    */
-  using Storage = Any<detail::GVArrayAnyExtraInfo, 32, 8>;
+  using Storage = Any<detail::GVArrayAnyExtraInfo, 40, 8>;
 
   const GVArrayImpl *impl_ = nullptr;
   Storage storage_;
@@ -673,6 +673,7 @@ template<typename ImplT, typename... Args> inline void GVArrayCommon::emplace(Ar
     impl_ = &storage_.template emplace<ImplT>(std::forward<Args>(args)...);
   }
   else {
+    std::cout << typeid(ImplT).name() << "\n";
     std::shared_ptr<const GVArrayImpl> ptr = std::make_shared<ImplT>(std::forward<Args>(args)...);
     impl_ = &*ptr;
     storage_ = std::move(ptr);



More information about the Bf-blender-cvs mailing list