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

This commit is contained in:
William S Fulton 2014-05-31 19:58:42 +01:00
commit 22be94d207
2 changed files with 2 additions and 2 deletions

View file

@ -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];