From 766c612cf8e5c514c08e263617620531582a8afc Mon Sep 17 00:00:00 2001 From: Faumaray Date: Mon, 20 Oct 2025 01:04:53 +0300 Subject: [PATCH] enforce ctx in constructor Signed-off-by: Faumaray --- include/Mod/Mod.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/Mod/Mod.hpp b/include/Mod/Mod.hpp index a4b0f73..fc286be 100644 --- a/include/Mod/Mod.hpp +++ b/include/Mod/Mod.hpp @@ -36,6 +36,8 @@ public: virtual void onStart() = 0; virtual void onStop() = 0; virtual ~Mod() = default; + virtual constexpr std::string_view Name() = 0; + virtual constexpr std::string_view Version() = 0; Context m_ctx; // T provides: T(const Context&), onStart(), onStop() };