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 3f90f02 commit d796a2aCopy full SHA for d796a2a
inst/include/Rcpp/Nullable.h
@@ -124,7 +124,7 @@ namespace Rcpp {
124
/**
125
* Return a clone of m_sexp as a T
126
*/
127
- inline T clone() const { return Rcpp::clone(as()); }
+ inline T clone() const { return Rcpp::clone(Rcpp::as< T >(get())); }
128
129
private:
130
SEXP m_sexp;
inst/unitTests/runit.misc.R
@@ -191,7 +191,7 @@ if (.runThisTest) {
191
checkEquals( testNullableAs(M), M )
192
}
193
194
- test.NullableAccessAs <- function() {
+ test.NullableAccessClone <- function() {
195
M <- matrix(1:4, 2, 2)
196
checkEquals( testNullableClone(M), M )
197
0 commit comments