Browse Source

Added final specifier back to the View class templates

See https://github.com/skypjack/entt/pull/4#issuecomment-304510644
Fabian Loeschner 8 years ago
parent
commit
370c964c8d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/registry.hpp

+ 2 - 2
src/registry.hpp

@@ -20,7 +20,7 @@ class View;
 
 
 template<template<typename...> class Pool, typename Entity, typename... Components, typename Type, typename... Types>
-class View<Pool<Entity, Components...>, Type, Types...> {
+class View<Pool<Entity, Components...>, Type, Types...> final {
     using pool_type = Pool<Entity, Components...>;
     using entity_type = typename pool_type::entity_type;
 
@@ -122,7 +122,7 @@ private:
 
 
 template<template<typename...> class Pool, typename Entity, typename... Components, typename Type>
-class View<Pool<Entity, Components...>, Type> {
+class View<Pool<Entity, Components...>, Type> final {
     using pool_type = Pool<Entity, Components...>;
     using entity_type = typename pool_type::entity_type;