Joshua,
Thanks for reposting here. A better place than my inbox, and I was rushed
earlier as I missed the line ...
On 6 February 2020 at 20:47, Joshua N Pritikin wrote:
| The Rcpp::exception constructor does,
|
| rcpp_set_stack_trace(Shield(stack_trace()))
|
| This can corrupt R if called w
The Rcpp::exception constructor does,
rcpp_set_stack_trace(Shield(stack_trace()))
This can corrupt R if called within an OpenMP block.
It would be nice if there were some warnings about this (mis)usage OR,
better, if Rcpp::exception was thread-safe.
Here's the usage that should be A-OK:
std