enforce ctx in constructor

Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2025-10-20 01:28:02 +03:00
1 parent 8f8f05ce01
commit f398ae2f65
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ template<class T>
class Mod : public Base {
private:
static std::unique_ptr<Base> _vl_factory(const Context& ctx) {
if (std::is_constructible_v<T, const Context&>())
if (std::is_constructible_v<T, const Context&>)
{
return std::make_unique<T>(ctx);
}