From 3ab038fc0fe2592a3ed78055bdc2b9cad05cf0a4 Mon Sep 17 00:00:00 2001 From: sehe Date: Tue, 22 Aug 2017 09:56:44 +0200 Subject: [PATCH] fix `rdbuf()` implementation on pipe --- include/boost/process/pipe.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/process/pipe.hpp b/include/boost/process/pipe.hpp index 8af776f96..3af45e05c 100644 --- a/include/boost/process/pipe.hpp +++ b/include/boost/process/pipe.hpp @@ -262,7 +262,7 @@ class basic_ipstream : public std::basic_istream typedef typename Traits::off_type off_type ; ///Get access to the underlying stream_buf - basic_pipebuf* rdbuf() const {return _buf;}; + basic_pipebuf* rdbuf() {return &_buf;}; ///Default constructor. basic_ipstream() : std::basic_istream(nullptr)