We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f7231e commit f3125b5Copy full SHA for f3125b5
ChangeLog
@@ -1,3 +1,8 @@
1
+2014-02-03 Kevin Ushey <kevinushey@gmail.com>
2
+
3
+ * inst/include/Rcpp/vector/Vector.h: Enable conversion from
4
+ Rcpp vectors to RObject
5
6
2014-02-02 Dirk Eddelbuettel <edd@debian.org>
7
8
* DESCRIPTION: Release 0.11.0
inst/include/Rcpp/vector/Vector.h
@@ -237,6 +237,10 @@ class Vector :
237
inline NameProxy operator()( const std::string& name ) const {
238
return NameProxy( const_cast<Vector&>(*this), name ) ;
239
}
240
241
+ inline operator RObject() const {
242
+ return RObject( Storage::get__() );
243
+ }
244
245
Vector& sort(){
246
typename traits::storage_type<RTYPE>::type* start = internal::r_vector_start<RTYPE>( Storage::get__() ) ;
0 commit comments