make is_object return true for swig types (patch from jgillis, sf 3424833)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12954 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
36ab437443
commit
d29e751cce
1 changed files with 7 additions and 0 deletions
|
|
@ -703,6 +703,10 @@ namespace Swig {
|
|||
return as_value();
|
||||
}
|
||||
|
||||
virtual bool is_object() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool is_string() const {
|
||||
octave_swig_type *nc_this = const_cast < octave_swig_type *>(this);
|
||||
return !!nc_this->find_member("__str__", false);
|
||||
|
|
@ -950,6 +954,9 @@ namespace Swig {
|
|||
octave_value subsasgn(const std::string &ops, const std::list < octave_value_list > &idx, const octave_value &rhs)
|
||||
{ return ptr->subsasgn(ops, idx, rhs); }
|
||||
|
||||
virtual bool is_object() const
|
||||
{ return ptr->is_object(); }
|
||||
|
||||
virtual bool is_string() const
|
||||
{ return ptr->is_string(); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue