From 7078bcf5ba5f837fe462099c36d77c851180bd8e Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Tue, 25 Nov 2025 02:07:05 +0100 Subject: [PATCH] added default constructor --- interfaces/Crafter.Event.cppm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) {