summaryrefslogtreecommitdiff
path: root/lib/collection.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/collection.hpp')
-rw-r--r--lib/collection.hpp2
1 files changed, 1 insertions, 1 deletions
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<typename T = Object, typename... Params>
auto
- create(Params &&... params)
+ create(Params &&... params) requires std::is_base_of_v<Object, T>
{
if constexpr (shared) {
auto obj = std::make_shared<T>(std::forward<Params>(params)...);