Procházet zdrojové kódy

Added final specifier back to the View class templates

See https://github.com/skypjack/entt/pull/4#issuecomment-304510644
Fabian Loeschner před 8 roky
rodič
revize
370c964c8d
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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>
 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 pool_type = Pool<Entity, Components...>;
     using entity_type = typename pool_type::entity_type;
     using entity_type = typename pool_type::entity_type;
 
 
@@ -122,7 +122,7 @@ private:
 
 
 
 
 template<template<typename...> class Pool, typename Entity, typename... Components, typename Type>
 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 pool_type = Pool<Entity, Components...>;
     using entity_type = typename pool_type::entity_type;
     using entity_type = typename pool_type::entity_type;