[PHP] For std_vector.i and std_map.i, rename empty() to is_empty()
since "empty" is a PHP reserved word. Based of patch from Mark Klein in SF#1943417. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
70ff1c3005
commit
b2cea3c42a
3 changed files with 12 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ namespace std {
|
|||
public:
|
||||
vector(unsigned int size = 0);
|
||||
unsigned int size() const;
|
||||
%rename(is_empty) empty;
|
||||
bool empty() const;
|
||||
void clear();
|
||||
%rename(push) push_back;
|
||||
|
|
@ -86,6 +87,7 @@ namespace std {
|
|||
public:
|
||||
vector(unsigned int size = 0);
|
||||
unsigned int size() const;
|
||||
%rename(is_empty) empty;
|
||||
bool empty() const;
|
||||
void clear();
|
||||
%rename(push) push_back;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue