Boost logo

Boost :

Subject: Re: [boost] Subject: Formal Review of Proposed Boost.Process library starts tomorrow
From: Ilya Sokolov (ilyasokol_at_[hidden])
Date: 2011-02-09 02:16:10


On Wed, 09 Feb 2011 03:57:43 +0500, Boris Schaeling wrote:
> On Mon, 07 Feb 2011 23:26:57 +0100, Vicente Botet
> [snip]
>
>> [...]Instead of just defining them for POSIX
>>
>> #if defined(BOOST_POSIX_API)
>> pipe() : stype_(unknown_stream) { }
>> pipe(stream_type stype) : stype_(stype) { }
>> #endif
>>
>> You can add the respective constructors for WINDOWS, even if the
>> parameter
>> is completely ignored.
>>
>> #if defined(BOOST_WINDOWS_API)
>> pipe() { }
>> pipe(stream_type /*stype*/) { }
>> #endif
>>
>> The same applies to all the behaviors using stream_type.
>
> The use case would be to create a stand-alone pipe outside of
> Boost.Process?

Another use case would be to support pipes between child and parent
with unusual direction, i.e. stdin used for output and stdout/strerr
used for input. In current version it is possible on posix,
but impossible on windows.

> [snip]


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