#1062 Parse error on two parameter template template argument

open
parsing (147)
5
2012-12-21
2010-01-13
vroom
No

Although SWIG seems to support a construct like:

template<
typename A, template< typename > class B
>
class foo
{
};

It produces a "Error: Syntax error in input(1)" when adding a second "typename" in the template template parameter:

template<
typename A, template< typename,typename > class B
>
class foo
{
};

Discussion

  • vroom

    vroom - 2010-01-13

    Forgot to mention: bug is with version 1.3.40

     
  • Chris Long

    Chris Long - 2012-01-20

    This also seems to exist in version 2.0.4. I also tried adding dummy type names but that didn't help. In the absence of a fix, does anyone have a suggestion for a workaround?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks