From 073b9cfa0507ded8b53253f20ce7bd8e1c529057 Mon Sep 17 00:00:00 2001 From: Faumaray Date: Mon, 20 Oct 2025 01:32:59 +0300 Subject: [PATCH] enforce ctx in constructor Signed-off-by: Faumaray --- include/Mod/Mod.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Mod/Mod.hpp b/include/Mod/Mod.hpp index c24f81c..f229c2b 100644 --- a/include/Mod/Mod.hpp +++ b/include/Mod/Mod.hpp @@ -17,7 +17,7 @@ template class Mod : public Base { private: static std::unique_ptr _vl_factory(const Context& ctx) { - if (std::is_constructible_v) + if constexpr (std::is_constructible_v) { return std::make_unique(ctx); }