Fixed template instantiations class field generation
This commit is contained in:
@@ -63,7 +63,7 @@ std::string full_name(const cppast::cpp_type &t,
|
|||||||
{
|
{
|
||||||
std::string t_ns;
|
std::string t_ns;
|
||||||
if (!inside_class)
|
if (!inside_class)
|
||||||
t_ns = ns(t, idx);
|
t_ns = ns(cppast::remove_cv(unreferenced(t)), idx);
|
||||||
|
|
||||||
auto t_name = cppast::to_string(t);
|
auto t_name = cppast::to_string(t);
|
||||||
|
|
||||||
|
|||||||
@@ -526,6 +526,7 @@ bool tu_visitor::process_field_with_template_instantiation(
|
|||||||
resolve_alias(template_instantiation_type));
|
resolve_alias(template_instantiation_type));
|
||||||
|
|
||||||
class_ tinst = build_template_instantiation(unaliased);
|
class_ tinst = build_template_instantiation(unaliased);
|
||||||
|
tinst.usr = tinst.full_name(ctx.config.using_namespace);
|
||||||
|
|
||||||
// Infer the relationship of this field to the template
|
// Infer the relationship of this field to the template
|
||||||
// instantiation
|
// instantiation
|
||||||
|
|||||||
Reference in New Issue
Block a user