Fixed constructor name in proxy

release/4.3a0
dellaert 2014-11-13 21:53:33 +01:00
parent 09e3c7df9f
commit a4fe404d82
2 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,7 @@ struct Constructor: public ArgumentOverloads {
Constructor expandTemplate(const TemplateSubstitution& ts) const { Constructor expandTemplate(const TemplateSubstitution& ts) const {
Constructor inst = *this; Constructor inst = *this;
inst.argLists_ = expandArgumentListsTemplate(ts); inst.argLists_ = expandArgumentListsTemplate(ts);
inst.name = inst.name; inst.name = ts.expandedClassName();
return inst; return inst;
} }

View File

@ -39,6 +39,10 @@ public:
templateArg_(a), qualifiedType_(t), expandedClass_(e) { templateArg_(a), qualifiedType_(t), expandedClass_(e) {
} }
std::string expandedClassName() const {
return expandedClass_.name;
}
// Substitute if needed // Substitute if needed
Qualified operator()(const Qualified& type) const { Qualified operator()(const Qualified& type) const {
if (type.name == templateArg_ && type.namespaces.empty()) if (type.name == templateArg_ && type.namespaces.empty())