From 52fe8fddaf36fe3c1472fa04c1bed0da848770ac Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 26 Feb 2024 22:18:48 +0000 Subject: Support extra arguments in SelectionV::make_s --- lib/persistence.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/persistence.h b/lib/persistence.h index c53ff99..75f578e 100644 --- a/lib/persistence.h +++ b/lib/persistence.h @@ -81,11 +81,11 @@ namespace Persistence { return make_s>(value); } - template + template [[nodiscard]] static SelectionPtr - make_s(T & value) + make_s(T & value, Extra &&... extra) { - return std::make_unique(value); + return std::make_unique(value, std::forward(extra)...); } T & v; -- cgit v1.2.3