Slightly better decltype() support for expressions
decltype now accepts C++ expressions instead of just an ID, such as: int i,j; ... decltype(i+j) ... ... decltype(&i) ... These result in a warning for non-trivial expressions which SWIG cannot evaluate: Warning 344: Unable to deduce decltype for 'i+j'. See 'Type Inference' in CPlusPlus.html for workarounds. Issue #1589 Issue #1590
This commit is contained in:
parent
9b91b24d6b
commit
2a1711e436
8 changed files with 85 additions and 14 deletions
|
|
@ -99,6 +99,7 @@
|
|||
#define WARN_CPP11_ALIAS_DECLARATION 341 /* redundant now */
|
||||
#define WARN_CPP11_ALIAS_TEMPLATE 342 /* redundant now */
|
||||
#define WARN_CPP11_VARIADIC_TEMPLATE 343
|
||||
#define WARN_CPP11_DECLTYPE 344
|
||||
|
||||
#define WARN_IGNORE_OPERATOR_NEW 350 /* new */
|
||||
#define WARN_IGNORE_OPERATOR_DELETE 351 /* delete */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue