Skip to content

Commit 2ced64d

Browse files
fix warning given by -Wreorder
1 parent 254dd8c commit 2ced64d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2012-11-21 Romain Francois <romain@r-enthusiasts.com>
2+
3+
* include/Rcpp/iostream/Rostream.h: Fix warning given by -Wreorder
4+
15
2012-11-20 JJ Allaire <jj@rstudio.org>
26

37
* inst/doc/Rcpp-attributes/Rcpp-attributes.Rnw: elaborate further

inst/include/Rcpp/iostream/Rostream.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ namespace Rcpp {
3333

3434
class Rostream : public std::ostream {
3535
public:
36-
Rostream(bool output) : buf(output), std::ostream(&buf) {}
37-
38-
private:
39-
Rstreambuf buf ;
36+
Rostream(bool output) : std::ostream( new Rstreambuf(output) ) {}
4037
};
4138

4239
// declare global variable

0 commit comments

Comments
 (0)