diff --git a/source/to_cpp1.h b/source/to_cpp1.h index 57f69d9c3c..41571b9b68 100644 --- a/source/to_cpp1.h +++ b/source/to_cpp1.h @@ -5059,9 +5059,13 @@ class cppfront auto req = std::string{"std::is_convertible_v(&type_id.id) + // The call to 'print_to_string' just computed this. + // We could cache that so it's reused here. + && is_dependent(type_id) + ) + { req += "typename "; } req += param_type;