Skip to content

Commit 89cb334

Browse files
making Environment::new_child() const
1 parent 032d307 commit 89cb334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/Environment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ namespace Rcpp{
407407
/**
408408
* creates a new environment whose this is the parent
409409
*/
410-
Environment_Impl new_child(bool hashed) {
410+
Environment_Impl new_child(bool hashed) const {
411411
SEXP newEnvSym = Rf_install("new.env");
412412
return Environment_Impl( Rcpp_eval(Rf_lang3( newEnvSym, Rf_ScalarLogical(hashed), Storage::get__() )) );
413413
}

0 commit comments

Comments
 (0)