Skip to content

Commit bd3542c

Browse files
committed
Fix missing explicit for single-argument constructors
1 parent b2d4020 commit bd3542c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/to_cpp1.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6537,7 +6537,7 @@ class cppfront
65376537
func->is_constructor()
65386538
&& !func->is_constructor_with_that()
65396539
&& generating_assignment_from != &n
6540-
&& func->parameter_count() < 2
6540+
&& func->parameter_count() < 3
65416541
)
65426542
{
65436543
prefix += "explicit ";

0 commit comments

Comments
 (0)