Placate scilab character limit
This commit is contained in:
parent
5a2656ab80
commit
5b7edebdba
1 changed files with 4 additions and 4 deletions
|
|
@ -74,15 +74,15 @@ class Bar {
|
||||||
Foo *testFoo(int a, Foo *f) {
|
Foo *testFoo(int a, Foo *f) {
|
||||||
return new Foo(2 * a + (f ? f->num : 0) + fval.num);
|
return new Foo(2 * a + (f ? f->num : 0) + fval.num);
|
||||||
}
|
}
|
||||||
/* Const member data means this class can't be assigned.
|
/* Const member data and references mean this class can't be assigned.
|
||||||
private:
|
private:
|
||||||
Bar& operator=(const Bar&);
|
Bar& operator=(const Bar&);
|
||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
// This class is valid C++ but cannot be assigned to.
|
// This class is valid C++ but cannot be assigned to because it has const member data.
|
||||||
struct JustConstMemberData {
|
struct JustConst {
|
||||||
explicit JustConstMemberData(int i_inp) : i(i_inp) {}
|
explicit JustConst(int i_inp) : i(i_inp) {}
|
||||||
const int i;
|
const int i;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue