mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
types of class template implicit methods
template <class T> A{}; gets a constructor A( const A<T> & ); this was part of bug 71827
This commit is contained in:
parent
772d99ada4
commit
02d30a64cb
1 changed files with 7 additions and 1 deletions
|
@ -31,6 +31,7 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTOperatorName;
|
|||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTQualifiedName;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplateId;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassScope;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassTemplate;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPConstructor;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPMethod;
|
||||
|
@ -73,7 +74,12 @@ public class CPPClassScope extends CPPScope implements ICPPClassScope {
|
|||
|
||||
implicits = new ICPPMethod[4];
|
||||
ICPPClassType clsType = (ICPPClassType) binding;
|
||||
|
||||
if( clsType instanceof ICPPClassTemplate ){
|
||||
try {
|
||||
clsType = (ICPPClassType) CPPTemplates.instantiateWithinClassTemplate( (ICPPClassTemplate) clsType );
|
||||
} catch ( DOMException e ) {
|
||||
}
|
||||
}
|
||||
char [] className = name.toCharArray();
|
||||
|
||||
//default constructor: A()
|
||||
|
|
Loading…
Add table
Reference in a new issue