DCE factory rework

This commit is contained in:
David Cermak
2021-04-07 09:12:10 +02:00
parent e17d02639c
commit 5712a6042a
2 changed files with 31 additions and 62 deletions

View File

@ -19,7 +19,7 @@ public:
template <typename T, typename ...Args>
static DCE_T<T>* create(const config *cfg, Args&&... args)
{
return build_generic_DCE< /* Object to create */ DCE_T<T>, /* vanilla pointer */ DCE_T<T> *, /* module */ T>
return build_generic_DCE<T>
(cfg, std::forward<Args>(args)...);
}
};