From bd3542c4492295d7949243731745a00893f671c5 Mon Sep 17 00:00:00 2001 From: LT2H Date: Thu, 27 Mar 2025 09:30:51 +0700 Subject: [PATCH] Fix missing explicit for single-argument constructors --- source/to_cpp1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/to_cpp1.h b/source/to_cpp1.h index a6c08f60f..c6898e1e4 100644 --- a/source/to_cpp1.h +++ b/source/to_cpp1.h @@ -6537,7 +6537,7 @@ class cppfront func->is_constructor() && !func->is_constructor_with_that() && generating_assignment_from != &n - && func->parameter_count() < 2 + && func->parameter_count() < 3 ) { prefix += "explicit ";