From 40c828455d094854d9e531fc7dd0d1a0244957b7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 19:29:08 +0200 Subject: refactor: make container use concepts --- src/bootstrap.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/bootstrap.cpp') diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index 1436301..f22c689 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -31,6 +31,7 @@ #include "randomization/generator.hpp" #include "randomization/seed_generator.hpp" +#include "DI/concepts.hpp" #include "util/function.hpp" #include @@ -38,11 +39,8 @@ #include #include -template -concept abstract = std::is_abstract_v; - template -requires abstract && std::derived_from && +requires Abstract && std::derived_from && std::constructible_from auto construct_as_interface(Params &&...parameters) -> std::shared_ptr { -- cgit v1.2.3-18-g5258