add nested class test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a9ec1b6092
commit
81c79ac52d
1 changed files with 19 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
%module template_classes
|
||||
|
||||
|
||||
#pragma SWIG nowarn=SWIGWARN_PARSE_NESTED_CLASS
|
||||
|
||||
%{
|
||||
%}
|
||||
|
||||
|
|
@ -23,6 +26,22 @@ public:
|
|||
void setPoint(Point<T>& value) {point = value;}
|
||||
private:
|
||||
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