this is (a) not needed with Rcpp::export (it's injected automatically); (b) not safe in it's naive form when returning an RObject (due to some very subtle R gc issues); and (c) in this expression a no-op since the constructor and destructor both execute on the same line. I'd say just remove this entirely.