C++11 constexpr variables support added
This commit is contained in:
parent
348caba6e5
commit
e186dc13b7
3 changed files with 36 additions and 15 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue