Parcourir la source

meta: minor changes

Michele Caini il y a 2 ans
Parent
commit
9d45825947
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/entt/meta/meta.hpp

+ 1 - 2
src/entt/meta/meta.hpp

@@ -1851,8 +1851,7 @@ private:
  * @return True in case of success, false otherwise.
  */
 inline bool meta_sequence_container::resize(const size_type sz) {
-    void *elem = storage.data();
-    return elem && resize_fn(elem, sz);
+    return (storage.policy() != any_policy::cref) && resize_fn(storage.data(), sz);
 }
 
 /**