[Rcpp-devel] assert() for Rcpp?
This would still bypass the dror for the RNGscope object automatically added by Rcpp::export right ?
Indeed it would. I think Dirk's example is really just an illustration of how we handle exceptions internally via the BEGIN/END macros and not something that user code should ever emulate (unless it's outside of Rcpp::export and doesn't use the BEGIN/END macros.