Browse Source

any: minor changes

Michele Caini 5 years ago
parent
commit
5149d1395e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/core/any.hpp

+ 1 - 1
src/entt/core/any.hpp

@@ -267,7 +267,7 @@ public:
 
     /*! @brief Destroys contained object */
     void reset() {
-       emplace<void>();
+        *this = any{};
     }
 
     /**