Bläddra i källkod

poly: add missing template keyword

Michele Caini 5 år sedan
förälder
incheckning
c6a2ed78c3
2 ändrade filer med 2 tillägg och 12 borttagningar
  1. 1 11
      TODO
  2. 1 1
      src/entt/poly/poly.hpp

+ 1 - 11
TODO

@@ -6,20 +6,10 @@
 * add examples (and credits) from @alanjfs :)
 * static reflection, hint: template<> meta_type_t<Type>: meta_descriptor<name, func..., props..., etc...> (see #342)
 * 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
-  - spatial query
-  - runtime types pool
-  - off-line/off-memory/remote
-  - ...
+* custom pools example (multi instance, tables, enable/disable, and so on...)
 
 WIP:
 * HP: remove storage category and get_as_tuple, make storage classes return tuple (+ view generator detect shared storage in future)?
-* HP: remove non-const registry::storage function?
 * HP: review registry::get, registry::try_get
 * HP: weak reference wrapper example with custom storage.
 * HP: merge view and view pack

+ 1 - 1
src/entt/poly/poly.hpp

@@ -277,7 +277,7 @@ public:
      */
     template<typename Type, typename... Args>
     void emplace(Args &&... args) {
-        storage.emplace<Type>(std::forward<Args>(args)...);
+        storage.template emplace<Type>(std::forward<Args>(args)...);
         vtable = poly_vtable<Concept>::template instance<Type>();
     }