[Rcpp-commits] r4004 - in pkg/Rcpp: . inst/include/Rcpp/iostream
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Nov 21 10:17:00 CET 2012
Author: romain
Date: 2012-11-21 10:17:00 +0100 (Wed, 21 Nov 2012)
New Revision: 4004
Modified:
pkg/Rcpp/ChangeLog
pkg/Rcpp/inst/include/Rcpp/iostream/Rostream.h
Log:
fix warning given by -Wreorder
Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog 2012-11-21 01:40:37 UTC (rev 4003)
+++ pkg/Rcpp/ChangeLog 2012-11-21 09:17:00 UTC (rev 4004)
@@ -1,3 +1,7 @@
+2012-11-21 Romain Francois <romain at r-enthusiasts.com>
+
+ * include/Rcpp/iostream/Rostream.h: Fix warning given by -Wreorder
+
2012-11-20 JJ Allaire <jj at rstudio.org>
* inst/doc/Rcpp-attributes/Rcpp-attributes.Rnw: elaborate further
Modified: pkg/Rcpp/inst/include/Rcpp/iostream/Rostream.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/iostream/Rostream.h 2012-11-21 01:40:37 UTC (rev 4003)
+++ pkg/Rcpp/inst/include/Rcpp/iostream/Rostream.h 2012-11-21 09:17:00 UTC (rev 4004)
@@ -33,10 +33,7 @@
class Rostream : public std::ostream {
public:
- Rostream(bool output) : buf(output), std::ostream(&buf) {}
-
- private:
- Rstreambuf buf ;
+ Rostream(bool output) : std::ostream( new Rstreambuf(output) ) {}
};
// declare global variable
More information about the Rcpp-commits
mailing list