Przeglądaj źródła

meta: minor changes

Michele Caini 2 lat temu
rodzic
commit
9d45825947
1 zmienionych plików z 1 dodań i 2 usunięć
  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.
  * @return True in case of success, false otherwise.
  */
  */
 inline bool meta_sequence_container::resize(const size_type sz) {
 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);
 }
 }
 
 
 /**
 /**