Using C++11 enum classes with just a forward reference.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13013 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6f9312d1c1
commit
38f6156a93
5 changed files with 35 additions and 16 deletions
|
|
@ -67,6 +67,12 @@ enum class Enum10 : TType<int>::type_name {
|
|||
Val1, Val2, Val3 = 300, Val4
|
||||
};
|
||||
|
||||
// forward declaration, no definition of enum
|
||||
enum class Enum11 : int;
|
||||
struct UseEnum11 {
|
||||
Enum11 myenum11;
|
||||
};
|
||||
|
||||
/*
|
||||
TODO
|
||||
enum class MyClass {AAA, BBB, CCC};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue