فهرست منبع

Merge pull request #4 from w1th0utnam3/final_branch

Remove final specifier from all class templates
Michele Caini 9 سال پیش
والد
کامیت
f45ae14eed
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      src/component_pool.hpp
  2. 1 1
      src/registry.hpp

+ 2 - 2
src/component_pool.hpp

@@ -20,7 +20,7 @@ class ComponentPool;
 
 
 
 
 template<typename Entity, typename Component>
 template<typename Entity, typename Component>
-class ComponentPool<Entity, Component> final {
+class ComponentPool<Entity, Component> {
 public:
 public:
     using component_type = Component;
     using component_type = Component;
     using size_type = std::uint32_t;
     using size_type = std::uint32_t;
@@ -116,7 +116,7 @@ private:
 
 
 
 
 template<typename Entity, typename Component, typename... Components>
 template<typename Entity, typename Component, typename... Components>
-class ComponentPool final {
+class ComponentPool {
     template<typename Comp>
     template<typename Comp>
     using Pool = ComponentPool<Entity, Comp>;
     using Pool = ComponentPool<Entity, Comp>;
 
 

+ 1 - 1
src/registry.hpp

@@ -192,7 +192,7 @@ class Registry;
 
 
 
 
 template<template<typename...> class Pool, typename Entity, typename... Components>
 template<template<typename...> class Pool, typename Entity, typename... Components>
-class Registry<Pool<Entity, Components...>> final {
+class Registry<Pool<Entity, Components...>> {
     using pool_type = Pool<Entity, Components...>;
     using pool_type = Pool<Entity, Components...>;
 
 
 public:
 public: