Ver Fonte

fix (due to clang warnings)

Michele Caini há 9 anos atrás
pai
commit
77f235928e
2 ficheiros alterados com 5 adições e 4 exclusões
  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...>
-struct ComponentPool;
+class ComponentPool;
 
 
 template<typename Entity, typename Component>
-struct ComponentPool<Entity, Component> final {
+class ComponentPool<Entity, Component> final {
+public:
     using component_type = Component;
     using size_type = std::uint32_t;
     using entity_type = Entity;
@@ -115,7 +116,7 @@ private:
 
 
 template<typename Entity, typename Component, typename... Components>
-class  ComponentPool final {
+class ComponentPool final {
     template<typename Comp>
     using Pool = ComponentPool<Entity, Comp>;
 

+ 1 - 1
src/registry.hpp

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