Skip to content

Commit 83e669d

Browse files
committed
Fix inspect that uses template with multiple args
1 parent cfa45f6 commit 83e669d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/cppfront.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ class cppfront
12641264
auto return_prefix = std::string{};
12651265
auto return_suffix = std::string{";"}; // use this to tack the ; back on in the alternative body
12661266
if (is_expression) {
1267-
return_prefix = "{ if constexpr( requires{" + statement + ";} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF(" + statement + ")," + result_type + "> ) return ";
1267+
return_prefix = "{ if constexpr( requires{" + statement + ";} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF((" + statement + "))," + result_type + "> ) return ";
12681268
return_suffix += " }";
12691269
}
12701270

0 commit comments

Comments
 (0)