Fixed class template handling

This commit is contained in:
Bartek Kryza
2022-05-07 19:59:13 +02:00
parent f264d71d3b
commit f5d80e90a3
11 changed files with 185 additions and 91 deletions

View File

@@ -87,7 +87,8 @@ std::string class_::base_template() const { return base_template_full_name_; }
bool operator==(const class_ &l, const class_ &r)
{
return l.full_name() == r.full_name();
return (l.name_and_ns() == r.name_and_ns()) &&
(l.templates_ == r.templates_);
}
void class_::add_type_alias(type_alias &&ta)
@@ -148,6 +149,7 @@ std::ostringstream &class_::render_template_params(
ostr << fmt::format("<{}>", fmt::join(tnames, ","));
}
return ostr;
}