Fixed template instantiations class field generation

This commit is contained in:
Bartek Kryza
2021-08-29 22:24:47 +02:00
parent ab4da6c87c
commit e60fbab059
2 changed files with 2 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ std::string full_name(const cppast::cpp_type &t,
{
std::string t_ns;
if (!inside_class)
t_ns = ns(t, idx);
t_ns = ns(cppast::remove_cv(unreferenced(t)), idx);
auto t_name = cppast::to_string(t);

View File

@@ -526,6 +526,7 @@ bool tu_visitor::process_field_with_template_instantiation(
resolve_alias(template_instantiation_type));
class_ tinst = build_template_instantiation(unaliased);
tinst.usr = tinst.full_name(ctx.config.using_namespace);
// Infer the relationship of this field to the template
// instantiation