Fix std::vector<bool> compile problems on OSX for Javascript
This commit is contained in:
parent
ecf28da5a9
commit
22be94d207
2 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ namespace std {
|
|||
%rename(add) push_back;
|
||||
void push_back(const value_type& x);
|
||||
%extend {
|
||||
const_reference get(int i) throw (std::out_of_range) {
|
||||
bool get(int i) throw (std::out_of_range) {
|
||||
int size = int(self->size());
|
||||
if (i>=0 && i<size)
|
||||
return (*self)[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue