diff --git a/include/Mod/Mod.hpp b/include/Mod/Mod.hpp index a01f97c..a0635de 100644 --- a/include/Mod/Mod.hpp +++ b/include/Mod/Mod.hpp @@ -17,7 +17,14 @@ template class Mod : public Base { private: static std::unique_ptr _vl_factory(const Context& ctx) { - return std::make_unique(ctx); + if (std::is_constructible_v()) + { + return std::make_unique(ctx); + } + else + { + return std::make_unique(); + } } // Registration only stores a factory pointer — no early T usage.