diff --git a/rice/Object.cpp b/rice/Object.cpp index 4516e5a7b..43dcde5bd 100644 --- a/rice/Object.cpp +++ b/rice/Object.cpp @@ -117,7 +117,7 @@ vcall( a[i] = it->value(); } - return protect(rb_funcall3, *this, id, (int)args.size(), &a[0]); + return protect(rb_funcall3, *this, id, (int)args.size(), a.data()); } void Rice::Object:: diff --git a/rice/Object.ipp b/rice/Object.ipp index 617806bc8..fd210c8a2 100644 --- a/rice/Object.ipp +++ b/rice/Object.ipp @@ -12,7 +12,7 @@ inline Rice::Object Rice::Object:: call(Identifier id, ArgT... args) const { auto asList = this->convert_args(args...); - return protect(rb_funcall2, value(), id, (int)asList.size(), &asList[0]); + return protect(rb_funcall2, value(), id, (int)asList.size(), asList.data()); } template