fix for 'template struct Opaque1 Type2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c7982bbdc8
commit
7dfcb56369
2 changed files with 11 additions and 2 deletions
|
|
@ -8,14 +8,19 @@
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum Hello { hi, hello };
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
%inline {
|
%inline {
|
||||||
namespace A {
|
namespace A {
|
||||||
struct OpaqueStruct;
|
struct OpaqueStruct;
|
||||||
typedef OpaqueStruct OpaqueType;
|
typedef struct OpaqueStruct OpaqueType;
|
||||||
|
typedef enum Hello Hi;
|
||||||
typedef std::vector<OpaqueType> OpaqueVectorType;
|
typedef std::vector<OpaqueType> OpaqueVectorType;
|
||||||
|
typedef std::vector<Hi> OpaqueVectorEnum;
|
||||||
|
|
||||||
void FillVector(OpaqueVectorType& v)
|
void FillVector(OpaqueVectorType& v)
|
||||||
{
|
{
|
||||||
|
|
@ -23,6 +28,10 @@ namespace A {
|
||||||
v[i] = OpaqueStruct();
|
v[i] = OpaqueStruct();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FillVector(const OpaqueVectorEnum& v)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1329,7 +1329,7 @@ SwigType *Swig_symbol_typedef_reduce(SwigType *ty, Symtab *tab) {
|
||||||
Symtab *ntab;
|
Symtab *ntab;
|
||||||
SwigType *nt = Copy(Getattr(n,"type"));
|
SwigType *nt = Copy(Getattr(n,"type"));
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
/* Fix for case 'typedef struct Hello hello;' */
|
/* Fix for case 'typedef struct Hello hello;' */
|
||||||
{
|
{
|
||||||
const char* dclass[3] = {"struct ", "union ", "class "};
|
const char* dclass[3] = {"struct ", "union ", "class "};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue