Browse Source

poly: cleanup

Michele Caini 1 year ago
parent
commit
a014656f04
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/entt/poly/poly.hpp

+ 3 - 5
src/entt/poly/poly.hpp

@@ -199,9 +199,7 @@ public:
     using vtable_type = typename poly_vtable<Concept, Len, Align>::type;
     using vtable_type = typename poly_vtable<Concept, Len, Align>::type;
 
 
     /*! @brief Default constructor. */
     /*! @brief Default constructor. */
-    basic_poly() noexcept
-        : storage{},
-          vtable{} {}
+    basic_poly() noexcept = default;
 
 
     /**
     /**
      * @brief Constructs a poly by directly initializing the new object.
      * @brief Constructs a poly by directly initializing the new object.
@@ -303,8 +301,8 @@ public:
     }
     }
 
 
 private:
 private:
-    basic_any<Len, Align> storage;
-    vtable_type vtable;
+    basic_any<Len, Align> storage{};
+    vtable_type vtable{};
 };
 };
 
 
 } // namespace entt
 } // namespace entt