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
{
};
Forgot to mention: bug is with version 1.3.40
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?
Reproduced with git master. Code seems valid (
g++ -std=c++98
is happy with it).I don't see a good workaround, though I haven't experimented.
Last edit: Olly Betts 2022-03-16
Duplicate of https://github.com/swig/swig/issues/1603 which is now fixed