소스 검색

minor changes

Michele Caini 5 년 전
부모
커밋
4a537d82d3
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 0
      TODO
  2. 1 1
      src/entt/entity/registry.hpp

+ 6 - 0
TODO

@@ -8,6 +8,7 @@
 * update documentation for meta, it contains less than half of the actual feature
 
 * custom pools example:
+  - lockless fully concurrent ro/rw pool with free lists
   - multi instance
   - tables
   - enable/disable component
@@ -19,11 +20,16 @@
 
 WIP:
 * HP: headless (sparse set only) view
+* HP: pass the registry to pools, basic poly storage should have only component member
 * HP: make view pack work also with groups, make packs input iterator only, add view adapter for external sources
 * HP: write documentation for custom storages and views!!
+* HP: add support for const references to any/poly (actual copy on copy, data vs cdata)
 * HP: any/poly: configurable sbo size, compile-time policies like sbo-required.
 * HP: registry: use a poly object for pools, no more pool_data type.
 * HP: make runtime views use opaque storage and therefore return also elements.
+* HP: make try_get part of the storage adapter and use it in the poly storage.
+* HP: make poly storage optionally disabled
+* HP: poly support for data members and predefined vtable type (no need to adhere to the api of type)
 * suppress warnings in meta.hpp (uninitialized members)
 * add exclude-only views to combine with packs
 * deprecate non-owning groups in favor of owning views and view packs, introduce lazy owning views

+ 1 - 1
src/entt/entity/registry.hpp

@@ -761,7 +761,7 @@ public:
      */
     void remove_all(const entity_type entity) {
         ENTT_ASSERT(valid(entity));
-        entity_type wrap[1]{entity};
+        entity_type wrap[1u]{entity};
 
         for(auto pos = pools.size(); pos; --pos) {
             if(auto &pdata = pools[pos-1]; pdata.pool && pdata.pool->contains(entity)) {