Problem with generating file_descriptor suing existing pipe file descriptor

Our program just installed version 69 of Boost and I am running into a
compile issue that I am not sure how to resolve. Following is the
associated section of C++ code that I am unable to figure out the changes
to get it to compile.
int filedes[2];
if ( pipe(filedes) == 0)
{
using namespace boost::iostreams;
stream

AMDG On 4/10/19 2:45 PM, Russell West via Boost wrote:
<snip>
The last provided line of code does not compile with a no matching function for call to 'boost::iostreams::file_descriptor::file_descriptor(int&, file_descriptor_flags&)' error.
<snip>
The other constructor available is file_descriptor(handle_type fd, file_descriptor_flags); but I can not figure out how to generate a detail::file_handle from the available int file descriptor generated from above pipe command.
detail::file_handle is supposed to be int (for non-Windows).
Will it cause any issues enabling BOOST_IOSTREAMS_WINDOWS so the required constructor will be available?
It will probably cause a lot of problems. In Christ, Steven Watanabe
participants (2)
-
Russell West
-
Steven Watanabe