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
|
|
@ -624,6 +624,7 @@ CPP11_TEST_CASES += \
|
|||
cpp11_thread_local \
|
||||
cpp11_template_double_brackets \
|
||||
cpp11_template_explicit \
|
||||
cpp11_template_parameters_decltype \
|
||||
cpp11_template_typedefs \
|
||||
cpp11_type_traits \
|
||||
cpp11_type_aliasing \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue