git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9329 626c5289-ae23-0410-ae9c-e8d60b6d4f22
56 lines
1 KiB
OpenEdge ABL
56 lines
1 KiB
OpenEdge ABL
%module template_expr
|
|
|
|
// bug #925555
|
|
%inline %{
|
|
|
|
template<int __stride, class __elementTypeSequence,
|
|
class __dataPtrType, class __elementType>
|
|
inline const ThisType &
|
|
ConcatenationOf(const vctFixedLengthConstSequenceBase<_size - 1,
|
|
__stride, __elementTypeSequence, __dataPtrType> & other,
|
|
__elementType last);
|
|
%}
|
|
|
|
// bug #956282
|
|
%inline %{
|
|
|
|
|
|
template<int q>
|
|
class X {};
|
|
|
|
|
|
%}
|
|
|
|
%template(X_1) X<1>;
|
|
%template(X_m1) X<-1>;
|
|
%template(X_1plus2) X<1+2>;
|
|
%template(X_1024div8) X<1024/8>;
|
|
|
|
|
|
// bug #646275
|
|
|
|
%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() {};
|
|
};
|
|
%}
|
|
|
|
|
|
// bug 1338527
|
|
|
|
|
|
%inline %{
|
|
|
|
template<typename, typename> class PatchList;
|
|
|
|
%}
|