Browse Source

Stubbed out function template in the AST converter.

pull/249/head
triton 11 years ago
parent
commit
4a7e3cdc03
  1. 4
      src/AST/Template.cs
  2. 4
      src/Core/Parser/ASTConverter.cs

4
src/AST/Template.cs

@ -193,6 +193,10 @@ namespace CppSharp.AST
/// </summary> /// </summary>
public class FunctionTemplate : Template public class FunctionTemplate : Template
{ {
public FunctionTemplate()
{
}
public FunctionTemplate(Declaration decl) public FunctionTemplate(Declaration decl)
: base(decl) : base(decl)
{ {

4
src/Core/Parser/ASTConverter.cs

@ -1356,7 +1356,9 @@ namespace CppSharp
public override AST.Declaration VisitFunctionTemplate(FunctionTemplate decl) public override AST.Declaration VisitFunctionTemplate(FunctionTemplate decl)
{ {
throw new NotImplementedException(); var _decl = new AST.FunctionTemplate();
VisitTemplate(decl, _decl);
return _decl;
} }
void VisitPreprocessedEntity(PreprocessedEntity entity, AST.PreprocessedEntity _entity) void VisitPreprocessedEntity(PreprocessedEntity entity, AST.PreprocessedEntity _entity)

Loading…
Cancel
Save