[Rcpp-devel] Rostream.h header

Dirk Eddelbuettel edd at debian.org
Sun May 13 18:32:09 CEST 2012


On 13 May 2012 at 18:04, Alexey Stukalov wrote:
| Actually, the example above works just fine, since Rostream conforms to ostream
| concept.
| I just had to make the following change to Rostream.h to make it compile:
| 
| --- /usr/lib64/R/library/Rcpp/include/Rcpp/iostream/Rostream.h  2012-05-13
| 17:50:58.090987364 +0200
| +++ /fast/opt/lib64/R/library/Rcpp/include/Rcpp/iostream/Rostream.h    
| 2012-05-10 13:52:45.542940000 +0200
| @@ -24,6 +24,8 @@
|  
|  #include <iomanip>                             // USES setw
|  
| +#include "Rstreambuf.h"
| +
|  // modified from 
|  // http://stackoverflow.com/questions/243696/
| correctly-over-loading-a-stringbuf-to-replace-cout-in-a-matlab-mex-file
| 
| It would be nice if you can apply this tiny patch.

Sure -- will take a look at this.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list