I try to use my C++ library in Java project via SWIG. But it seems that SWIG can't understand nested templates. So, this is the valid C++ code which I need to use, but SWIG can't build it:
template <template <int,template<typename>class,int> class block, int N, template<typename>class BN>
using residual = block<N,BN,1>;
I need to split it in something like this:
template <typename T> class BN;
template <int,typename BN, int> class block;
template <int N>
using residual = block<N,BN,1>;
But this is invalid C++ syntax.
So, how can I split C++ nested templates in the many non-nested templates?