Browse Source

fix (due to clang warnings)

Michele Caini 9 years ago
parent
commit
77f235928e
2 changed files with 5 additions and 4 deletions
  1. 4 3
      src/component_pool.hpp
  2. 1 1
      src/registry.hpp

+ 4 - 3
src/component_pool.hpp

@@ -16,11 +16,12 @@ namespace entt {
 
 
 
 
 template<typename, typename, typename...>
 template<typename, typename, typename...>
-struct ComponentPool;
+class ComponentPool;
 
 
 
 
 template<typename Entity, typename Component>
 template<typename Entity, typename Component>
-struct ComponentPool<Entity, Component> final {
+class ComponentPool<Entity, Component> final {
+public:
     using component_type = Component;
     using component_type = Component;
     using size_type = std::uint32_t;
     using size_type = std::uint32_t;
     using entity_type = Entity;
     using entity_type = Entity;
@@ -115,7 +116,7 @@ private:
 
 
 
 
 template<typename Entity, typename Component, typename... Components>
 template<typename Entity, typename Component, typename... Components>
-class  ComponentPool final {
+class ComponentPool final {
     template<typename Comp>
     template<typename Comp>
     using Pool = ComponentPool<Entity, Comp>;
     using Pool = ComponentPool<Entity, Comp>;
 
 

+ 1 - 1
src/registry.hpp

@@ -188,7 +188,7 @@ private:
 
 
 
 
 template<typename>
 template<typename>
-struct Registry;
+class Registry;
 
 
 
 
 template<template<typename...> class Pool, typename Entity, typename... Components>
 template<template<typename...> class Pool, typename Entity, typename... Components>