add nested class test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fb5c388df6
commit
ab81492fb8
1 changed files with 19 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
%module template_classes
|
%module template_classes
|
||||||
|
|
||||||
|
|
||||||
|
#pragma SWIG nowarn=SWIGWARN_PARSE_NESTED_CLASS
|
||||||
|
|
||||||
%{
|
%{
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
@ -23,6 +26,22 @@ public:
|
||||||
void setPoint(Point<T>& value) {point = value;}
|
void setPoint(Point<T>& value) {point = value;}
|
||||||
private:
|
private:
|
||||||
Point<T> point;
|
Point<T> point;
|
||||||
|
|
||||||
|
|
||||||
|
template <class Data>
|
||||||
|
struct pair2nd_eq
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
struct Foo : Point<int>
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
Foo foo;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue