storage: arguments are always ignored for empty types

This commit is contained in:
Michele Caini
2022-01-13 13:41:32 +01:00
parent 8a19e8dafe
commit 699f9105ae

View File

@@ -828,11 +828,9 @@ public:
*
* @tparam Args Types of arguments to use to construct the object.
* @param entt A valid identifier.
* @param args Parameters to use to construct an object for the entity.
*/
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);
}