From 9fd25e8b10b1291525a18c8b3e34256ca6151dd6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 Mar 2025 11:50:31 +0000 Subject: Add ManyPtr which tracks specified subclasses This removes the need to repeated dynamic_cast the pointer. Provides interface which enforces the fastest option for the required types. --- lib/persistence.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/persistence.h') diff --git a/lib/persistence.h b/lib/persistence.h index e385b20..75bcea6 100644 --- a/lib/persistence.h +++ b/lib/persistence.h @@ -1,5 +1,6 @@ #pragma once +#include "manyPtr.h" #include #include #include @@ -200,7 +201,7 @@ namespace Persistence { } [[nodiscard]] virtual NameActionSelection setName(const std::string_view key, SelectionFactory &&) = 0; - virtual void selHandler() {}; + virtual void selHandler() { }; virtual void setType(const std::string_view, const Persistable *) = 0; SelectionPtr sel {}; -- cgit v1.2.3