瀏覽代碼

meta: minor changes

Michele Caini 3 年之前
父節點
當前提交
9d45825947
共有 1 個文件被更改,包括 1 次插入2 次删除
  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);
 }
 
 /**