Skip to content

Commit 84cf4be

Browse files
Only add typename if typename not present in qualified types.
1 parent a07c174 commit 84cf4be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classdesc.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ struct MemberSig
194194
declName(d), returnType(r), argList(a), prefix(p), name(n), type(t) {}
195195
string declare() {
196196
// If qualified type, the typename qualifier required
197-
auto rType=returnType.find("::")!=string::npos? "typename "+returnType: returnType;
197+
auto rType=returnType.find("::")!=string::npos && returnType.find("typename ")==string::npos? "typename "+returnType: returnType;
198198
switch (type)
199199
{
200200
case none:

0 commit comments

Comments
 (0)