Iñaki Ucar
2018-12-03 18:33:58 UTC
Hi,
Rcout is defined in iostream/Rstreambuf.h as a static object. This
means that different translation units see a different Rcout, while
they see the same std::cout (I have a minimal package showing this if
needed). As a result, for example, one object allocated in a certain
.cpp cannot redirect the output of other object allocated in another
.cpp. Is there any solution to this (apart from putting everything in
a huge .cpp)?
Regards,
Rcout is defined in iostream/Rstreambuf.h as a static object. This
means that different translation units see a different Rcout, while
they see the same std::cout (I have a minimal package showing this if
needed). As a result, for example, one object allocated in a certain
.cpp cannot redirect the output of other object allocated in another
.cpp. Is there any solution to this (apart from putting everything in
a huge .cpp)?
Regards,
--
Iñaki Úcar
Iñaki Úcar