ソースを参照

any: minor changes

Michele Caini 5 年 前
コミット
5149d1395e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/entt/core/any.hpp

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

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