Selaa lähdekoodia

storage: arguments are always ignored for empty types

Michele Caini 4 vuotta sitten
vanhempi
commit
699f9105ae
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      src/entt/entity/storage.hpp

+ 1 - 3
src/entt/entity/storage.hpp

@@ -828,11 +828,9 @@ public:
      *
      *
      * @tparam Args Types of arguments to use to construct the object.
      * @tparam Args Types of arguments to use to construct the object.
      * @param entt A valid identifier.
      * @param entt A valid identifier.
-     * @param args Parameters to use to construct an object for the entity.
      */
      */
     template<typename... Args>
     template<typename... Args>
-    void emplace(const entity_type entt, Args &&...args) {
-        [[maybe_unused]] const value_type elem{std::forward<Args>(args)...};
+    void emplace(const entity_type entt, Args &&...) {
         base_type::try_emplace(entt);
         base_type::try_emplace(entt);
     }
     }