diff --git a/src/entt/poly/poly.hpp b/src/entt/poly/poly.hpp index 6c550e576..977148a5c 100644 --- a/src/entt/poly/poly.hpp +++ b/src/entt/poly/poly.hpp @@ -199,9 +199,7 @@ public: using vtable_type = typename poly_vtable::type; /*! @brief Default constructor. */ - basic_poly() noexcept - : storage{}, - vtable{} {} + basic_poly() noexcept = default; /** * @brief Constructs a poly by directly initializing the new object. @@ -303,8 +301,8 @@ public: } private: - basic_any storage; - vtable_type vtable; + basic_any storage{}; + vtable_type vtable{}; }; } // namespace entt