Bugfix for octave 4.4
With octave 4.4 the function virtual bool octave_base_value::is_object() const was renamed to virtual bool octave_base_value::isobject() const As noted in CHANGES "2012-03-26: xavier98", is_object() must return true for swig types whereas octave_base_value::is_object returns false per default.
This commit is contained in:
parent
cb5d7398b5
commit
f0bb77221a
1 changed files with 5 additions and 0 deletions
|
|
@ -1098,8 +1098,13 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own);
|
|||
octave_value subsasgn(const std::string &ops, const std::list < octave_value_list > &idx, const octave_value &rhs)
|
||||
{ return ptr->subsasgn(ops, idx, rhs); }
|
||||
|
||||
#if SWIG_OCTAVE_PREREQ(4,2,0)
|
||||
virtual bool isobject() const
|
||||
{ return ptr->is_object(); }
|
||||
#else
|
||||
virtual bool is_object() const
|
||||
{ return ptr->is_object(); }
|
||||
#endif
|
||||
|
||||
virtual bool is_string() const
|
||||
{ return ptr->is_string(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue