Add support for c++11 strongly typed enums inheriting from non standard primitive types

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13012 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-04-21 10:06:43 +00:00
commit 6f9312d1c1
2 changed files with 30 additions and 1 deletions

View file

@ -3319,7 +3319,7 @@ c_enum_keyword : ENUM {
base enum type (eg. unsigned short)
------------------------------------------------------------ */
c_enum_inherit : COLON primitive_type {
c_enum_inherit : COLON type_right {
$$ = $2;
}
| empty { $$ = 0; }