From c6a1198ed25f8d8fcc9f833a53204c49dfed47fd Mon Sep 17 00:00:00 2001 From: sha512sum Date: Wed, 3 Jul 2024 16:19:34 +0000 Subject: [PATCH] Add new components find function for builder --- include/cserver/engine/components.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/cserver/engine/components.hpp b/include/cserver/engine/components.hpp index 2e51ce7..9de8b8d 100644 --- a/include/cserver/engine/components.hpp +++ b/include/cserver/engine/components.hpp @@ -516,6 +516,7 @@ consteval auto TopologicalSort(const DependencyGraph struct ServiceContextBuilder { static constexpr auto kList = utempl::kTypeList; + static constexpr impl::DependenciesUtils kUtils; static constexpr auto kConfig = config; template static consteval auto Append(Options = {}) -> decltype(T::template Adder{}>(ServiceContextBuilder{}>>{})) { @@ -552,6 +553,23 @@ struct ServiceContextBuilder { }(ServiceContextBuilder{}); }; }; + + template