Skip to content

Commit

Permalink
Remove const from Instance::toString
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Aug 25, 2023
1 parent 4efdb34 commit 169ca71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions amplpy/amplpython/cppinterface/amplpythonPYTHON_wrap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17980,12 +17980,12 @@ SWIGINTERN PyObject *_wrap_Instance_toString(PyObject *self, PyObject *args) {
if (!SWIG_Python_UnpackTuple(args, "Instance_toString", 0, 0, 0)) SWIG_fail;
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ampl__Instance, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instance_toString" "', argument " "1"" of type '" "ampl::Instance const *""'");
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Instance_toString" "', argument " "1"" of type '" "ampl::Instance *""'");
}
arg1 = reinterpret_cast< ampl::Instance * >(argp1);
{
try {
result = ((ampl::Instance const *)arg1)->toString();
result = (arg1)->toString();
}
catch (std::range_error) {
SWIG_exception(SWIG_ValueError, "Range Error");
Expand Down
2 changes: 1 addition & 1 deletion dev/swig/common/common_instance.i
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Instance
{
public:

std::string toString() const;
std::string toString();
std::string name() const;
ampl::Entity entity() const;
ampl::Tuple key() const;
Expand Down

0 comments on commit 169ca71

Please sign in to comment.