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.
typename
1 parent ab00e91 commit 0a63813Copy full SHA for 0a63813
source/to_cpp1.h
@@ -5059,9 +5059,13 @@ class cppfront
5059
auto req = std::string{"std::is_convertible_v<CPP2_TYPEOF("};
5060
req += identifier;
5061
req += "), std::add_const_t<";
5062
- // The call to 'print_to_string' just computed this.
5063
- // We could cache that so it's reused here.
5064
- if (is_dependent(type_id)) {
+ if (
+ get_if<type_id_node::qualified>(&type_id.id)
+ // The call to 'print_to_string' just computed this.
5065
+ // We could cache that so it's reused here.
5066
+ && is_dependent(type_id)
5067
+ )
5068
+ {
5069
req += "typename ";
5070
}
5071
req += param_type;
0 commit comments