Fix assertion for some languages when wrapping a C++11 enum class that is private in a class.

Also don't wrap private enums for a few languages that attempted to do so.

Closes #594.
This commit is contained in:
William S Fulton 2016-03-31 20:27:36 +01:00
commit 1d62790928
10 changed files with 38 additions and 1 deletions

View file

@ -1157,6 +1157,9 @@ public:
* ------------------------------------------------------------ */
virtual int enumDeclaration(Node *n) {
if (getCurrentClass() && (cplus_mode != PUBLIC))
return SWIG_NOWRAP;
current[STATIC_CONST] = true;
current[ENUM_CONST] = true;
// There is some slightly specific behaviour with enums. Basically,