Quellcode durchsuchen

*: more consistent policy for final classes

Michele Caini vor 4 Jahren
Ursprung
Commit
a7d4a980ba

+ 1 - 1
src/entt/container/dense_hash_map.hpp

@@ -237,7 +237,7 @@ template<typename ILhs, typename IRhs>
  * @tparam Allocator Type of allocator used to manage memory and elements.
  */
 template<typename Key, typename Type, typename Hash, typename KeyEqual, typename Allocator>
-class dense_hash_map final {
+class dense_hash_map {
     static constexpr float default_threshold = 0.875f;
     static constexpr std::size_t minimum_capacity = 8u;
 

+ 1 - 1
src/entt/container/dense_hash_set.hpp

@@ -236,7 +236,7 @@ template<typename ILhs, typename IRhs>
  * @tparam Allocator Type of allocator used to manage memory and elements.
  */
 template<typename Type, typename Hash, typename KeyEqual, typename Allocator>
-class dense_hash_set final {
+class dense_hash_set {
     static constexpr float default_threshold = 0.875f;
     static constexpr std::size_t minimum_capacity = 8u;
 

+ 2 - 2
src/entt/entity/group.hpp

@@ -62,7 +62,7 @@ class basic_group;
  * @tparam Exclude Types of components used to filter the group.
  */
 template<typename Entity, typename... Get, typename... Exclude>
-class basic_group<Entity, owned_t<>, get_t<Get...>, exclude_t<Exclude...>> final {
+class basic_group<Entity, owned_t<>, get_t<Get...>, exclude_t<Exclude...>> {
     /*! @brief A registry is allowed to create groups. */
     friend class basic_registry<Entity>;
 
@@ -517,7 +517,7 @@ private:
  * @tparam Exclude Types of components used to filter the group.
  */
 template<typename Entity, typename... Owned, typename... Get, typename... Exclude>
-class basic_group<Entity, owned_t<Owned...>, get_t<Get...>, exclude_t<Exclude...>> final {
+class basic_group<Entity, owned_t<Owned...>, get_t<Get...>, exclude_t<Exclude...>> {
     /*! @brief A registry is allowed to create groups. */
     friend class basic_registry<Entity>;
 

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

@@ -147,7 +147,7 @@ struct basic_runtime_view;
  * @tparam Allocator Type of allocator used to manage memory and elements.
  */
 template<typename Entity, typename Allocator>
-struct basic_runtime_view<basic_sparse_set<Entity, Allocator>> final {
+struct basic_runtime_view<basic_sparse_set<Entity, Allocator>> {
     /*! @brief Underlying entity identifier. */
     using entity_type = Entity;
     /*! @brief Unsigned integer type. */