From 741a2f0638761d3058f8094f591fdc3c56c9ebf3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 16 Mar 2021 00:57:33 +0000 Subject: Add requires on factory like functions --- lib/collection.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/collection.hpp') diff --git a/lib/collection.hpp b/lib/collection.hpp index 1630fcc..cf51157 100644 --- a/lib/collection.hpp +++ b/lib/collection.hpp @@ -15,7 +15,7 @@ public: template auto - create(Params &&... params) + create(Params &&... params) requires std::is_base_of_v { if constexpr (shared) { auto obj = std::make_shared(std::forward(params)...); -- cgit v1.2.3