diff --git a/interfaces/Crafter.Event.cppm b/interfaces/Crafter.Event.cppm index b5aad46..c09911e 100644 --- a/interfaces/Crafter.Event.cppm +++ b/interfaces/Crafter.Event.cppm @@ -1,12 +1,11 @@ /* Crafter®.Event Copyright (C) 2025 Catcrafts® -Catcrafts.net +catcrafts.net This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 3.0 of the License, or (at your option) any later version. +License version 3.0 as published by the Free Software Foundation; This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -60,6 +59,7 @@ namespace Crafter { class Event { public: std::map*>> listeners; + Event() = default; Event(Event&& other) : listeners(std::move(other.listeners)) { for (const auto& listenerSlice : listeners) { for (const auto& listener : listenerSlice.second) { @@ -128,6 +128,7 @@ namespace Crafter { class Event { public: std::map*>> listeners; + Event() = default; Event(Event&& other) : listeners(std::move(other.listeners)) { for (const auto& listenerSlice : listeners) { for (const auto& listener : listenerSlice.second) {