C++11 constexpr variables support added

This commit is contained in:
William S Fulton 2014-03-10 07:07:39 +00:00
commit e186dc13b7
3 changed files with 36 additions and 15 deletions

View file

@ -412,7 +412,7 @@ static void add_symbols(Node *n) {
} else {
ty = type;
}
if (!SwigType_ismutable(ty)) {
if (!SwigType_ismutable(ty) || (storage && Strstr(storage, "constexpr"))) {
SetFlag(n,"hasconsttype");
SetFlag(n,"feature:immutable");
}