- Additional features -
-Automatic override of std::cout and std::thread
There are preprocessor options to replace all occurences of std::cout
and std::thread
with calls to RcppThread::Rcout
and RcppThread::Thread
(provided that the RcppThread headers are included first). To enable this, use
#define RCPPTHREAD_OVERRIDE_COUT 1 // std::cout override -#define RCPPTHREAD_OVERRIDE_THREAD 1 // std::thread override
before including the RcppThread headers.