Browse Source

handle: struct -> class

Michele Caini 2 years ago
parent
commit
0cf7262d2d
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/entt/entity/fwd.hpp
  2. 2 1
      src/entt/entity/handle.hpp

+ 1 - 1
src/entt/entity/fwd.hpp

@@ -50,7 +50,7 @@ template<typename>
 class basic_organizer;
 
 template<typename, typename...>
-struct basic_handle;
+class basic_handle;
 
 template<typename>
 class basic_snapshot;

+ 2 - 1
src/entt/entity/handle.hpp

@@ -94,7 +94,8 @@ template<typename ILhs, typename IRhs>
  * @tparam Scope Types to which to restrict the scope of a handle.
  */
 template<typename Registry, typename... Scope>
-struct basic_handle {
+class basic_handle {
+public:
     /*! @brief Type of registry accepted by the handle. */
     using registry_type = Registry;
     /*! @brief Underlying entity identifier. */