From 5b7edebdba95426c5a7adb1a39fd2f646c890367 Mon Sep 17 00:00:00 2001 From: Seth R Johnson Date: Fri, 4 Feb 2022 14:53:39 -0500 Subject: [PATCH] Placate scilab character limit --- Examples/test-suite/cpp_basic.i | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/test-suite/cpp_basic.i b/Examples/test-suite/cpp_basic.i index 854664030..ddccfa727 100644 --- a/Examples/test-suite/cpp_basic.i +++ b/Examples/test-suite/cpp_basic.i @@ -74,15 +74,15 @@ class Bar { Foo *testFoo(int a, Foo *f) { 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: Bar& operator=(const Bar&); */ }; -// This class is valid C++ but cannot be assigned to. -struct JustConstMemberData { -explicit JustConstMemberData(int i_inp) : i(i_inp) {} +// This class is valid C++ but cannot be assigned to because it has const member data. +struct JustConst { +explicit JustConst(int i_inp) : i(i_inp) {} const int i; };