fix for 'template struct Opaque1 Type2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ce25f45c99
commit
7010b3004e
2 changed files with 11 additions and 2 deletions
|
|
@ -8,14 +8,19 @@
|
|||
{
|
||||
};
|
||||
}
|
||||
|
||||
enum Hello { hi, hello };
|
||||
|
||||
%}
|
||||
|
||||
|
||||
%inline {
|
||||
namespace A {
|
||||
struct OpaqueStruct;
|
||||
typedef OpaqueStruct OpaqueType;
|
||||
typedef struct OpaqueStruct OpaqueType;
|
||||
typedef enum Hello Hi;
|
||||
typedef std::vector<OpaqueType> OpaqueVectorType;
|
||||
typedef std::vector<Hi> OpaqueVectorEnum;
|
||||
|
||||
void FillVector(OpaqueVectorType& v)
|
||||
{
|
||||
|
|
@ -23,6 +28,10 @@ namespace A {
|
|||
v[i] = OpaqueStruct();
|
||||
}
|
||||
}
|
||||
|
||||
void FillVector(const OpaqueVectorEnum& v)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue