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 53b158d commit 5d86ea7Copy full SHA for 5d86ea7
source/to_cpp1.h
@@ -4613,9 +4613,11 @@ class cppfront
4613
auto name = n.declaration->identifier->get_token();
4614
assert(name);
4615
auto req = print_to_string(*type_id.constraint);
4616
- req += "<CPP2_TYPEOF(";
4617
- req += *name;
4618
- req += ")>";
+ if (auto pos = req.find('<'); pos != req.npos) {
+ req.insert(pos+1, "CPP2_TYPEOF(" + name->to_string() + "), ");
+ } else {
4619
+ req.append("<CPP2_TYPEOF("+ name->to_string() +")>");
4620
+ }
4621
function_requires_conditions.push_back(req);
4622
}
4623
0 commit comments