Parcourir la source

entity: use =default as needed

Michele Caini il y a 2 ans
Parent
commit
a15511d5ff
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      src/entt/entity/fwd.hpp

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

@@ -130,7 +130,7 @@ using const_runtime_view = basic_runtime_view<const sparse_set>;
 template<typename... Type>
 template<typename... Type>
 struct exclude_t final: type_list<Type...> {
 struct exclude_t final: type_list<Type...> {
     /*! @brief Default constructor. */
     /*! @brief Default constructor. */
-    explicit constexpr exclude_t() {}
+    explicit constexpr exclude_t() = default;
 };
 };
 
 
 /**
 /**
@@ -147,7 +147,7 @@ inline constexpr exclude_t<Type...> exclude{};
 template<typename... Type>
 template<typename... Type>
 struct get_t final: type_list<Type...> {
 struct get_t final: type_list<Type...> {
     /*! @brief Default constructor. */
     /*! @brief Default constructor. */
-    explicit constexpr get_t() {}
+    explicit constexpr get_t() = default;
 };
 };
 
 
 /**
 /**
@@ -164,7 +164,7 @@ inline constexpr get_t<Type...> get{};
 template<typename... Type>
 template<typename... Type>
 struct owned_t final: type_list<Type...> {
 struct owned_t final: type_list<Type...> {
     /*! @brief Default constructor. */
     /*! @brief Default constructor. */
-    explicit constexpr owned_t() {}
+    explicit constexpr owned_t() = default;
 };
 };
 
 
 /**
 /**