poly: add missing template keyword

This commit is contained in:
Michele Caini
2021-02-22 09:45:55 +01:00
parent 7729958082
commit c6a2ed78c3
2 changed files with 2 additions and 12 deletions

12
TODO
View File

@@ -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

View File

@@ -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>();
}