Boost logo

Boost :

Subject: Re: [boost] Problem with generating file_descriptor suing existing pipe file descriptor
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2019-04-10 21:27:18


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk