We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa45f6 commit 83e669dCopy full SHA for 83e669d
source/cppfront.cpp
@@ -1264,7 +1264,7 @@ class cppfront
1264
auto return_prefix = std::string{};
1265
auto return_suffix = std::string{";"}; // use this to tack the ; back on in the alternative body
1266
if (is_expression) {
1267
- return_prefix = "{ if constexpr( requires{" + statement + ";} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF(" + statement + ")," + result_type + "> ) return ";
+ return_prefix = "{ if constexpr( requires{" + statement + ";} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF((" + statement + "))," + result_type + "> ) return ";
1268
return_suffix += " }";
1269
}
1270
0 commit comments