Eliminate nested class from testcase - that's not what we want to test here!
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
25ed8b2e50
commit
8fa318ee36
1 changed files with 0 additions and 10 deletions
|
|
@ -31,18 +31,8 @@ class X {};
|
|||
|
||||
%inline %{
|
||||
template<typename Type, short Rank>
|
||||
class Test {
|
||||
/**** conditional return type TestRm1 =
|
||||
Test<Type,Rank-1> oder Type: ****/
|
||||
template<bool cond, class T1, class T2> class
|
||||
CondRetType { typedef T1 TestRm1; };
|
||||
template<class T1, class T2> class
|
||||
CondRetType<false, T1, T2> { typedef T2 TestRm1; };
|
||||
typedef typename CondRetType< Rank!=1,
|
||||
Test<Type,Rank-1>, Type>::TestRm1 TestRm1;
|
||||
public:
|
||||
Test() {};
|
||||
};
|
||||
%}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue