Don't mark as "noassign" when a variable is immutable
I had assumed member variables could only be noassign by being "const", but I had forgotten about the `%immutable` keyword being applied via SWIG.
This commit is contained in:
parent
03dd2ec39d
commit
5a2656ab80
2 changed files with 7 additions and 4 deletions
|
|
@ -80,6 +80,12 @@ private:
|
|||
*/
|
||||
};
|
||||
|
||||
// This class is valid C++ but cannot be assigned to.
|
||||
struct JustConstMemberData {
|
||||
explicit JustConstMemberData(int i_inp) : i(i_inp) {}
|
||||
const int i;
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue