From 89cb33446106ebca61f8109aa715fb279e2cb0e6 Mon Sep 17 00:00:00 2001 From: Romain Francois Date: Fri, 1 Jun 2018 12:46:10 +0200 Subject: [PATCH] making Environment::new_child() const --- inst/include/Rcpp/Environment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/include/Rcpp/Environment.h b/inst/include/Rcpp/Environment.h index f37e5bb06..f231649a3 100644 --- a/inst/include/Rcpp/Environment.h +++ b/inst/include/Rcpp/Environment.h @@ -407,7 +407,7 @@ namespace Rcpp{ /** * creates a new environment whose this is the parent */ - Environment_Impl new_child(bool hashed) { + Environment_Impl new_child(bool hashed) const { SEXP newEnvSym = Rf_install("new.env"); return Environment_Impl( Rcpp_eval(Rf_lang3( newEnvSym, Rf_ScalarLogical(hashed), Storage::get__() )) ); }