Permalink
Browse files

Fix std::vector<bool> compile problems on OSX for Javascript

  • Loading branch information...
1 parent ecf28da commit 22be94d2070376237a2099788786b0cf7f8ab521 @wsfulton wsfulton committed May 31, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 Lib/javascript/jsc/std_vector.i
  2. +1 −1 Lib/javascript/v8/std_vector.i
@@ -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];
@@ -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];

0 comments on commit 22be94d

Please sign in to comment.