Add docs for C++11 ref-qualifiers
This commit is contained in:
parent
8a40327aa8
commit
330ef362f4
5 changed files with 150 additions and 6 deletions
|
|
@ -7,6 +7,29 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
|
|||
Version 4.0.0 (in progress)
|
||||
===========================
|
||||
|
||||
2017-08-25: wsfulton
|
||||
Issue #1059. Add support for C++11 ref-qualifiers on non-static member functions.
|
||||
Members with lvalue ref-qualifiers such as:
|
||||
|
||||
struct RQ {
|
||||
void m1(int x) &;
|
||||
void m2(int x) const &;
|
||||
};
|
||||
|
||||
are wrapped like any other member function. Member functions with rvalue ref-qualifiers
|
||||
are ignored by default, such as:
|
||||
|
||||
struct RQ {
|
||||
void m3(int x) &&;
|
||||
void m4(int x) const &&;
|
||||
};
|
||||
|
||||
example.i:7: Warning 405: Method with rvalue ref-qualifier m3(int) && ignored.
|
||||
example.i:8: Warning 405: Method with rvalue ref-qualifier m4(int) const && ignored.
|
||||
|
||||
These can be unignored and exposed to the target language, see further documentation in
|
||||
CPlusPlus11.html.
|
||||
|
||||
2017-08-16: wsfulton
|
||||
Fix #1063. Add using declarations to templates into typedef table.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue