Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-08-18 06:12:57


At 05:13 AM 8/18/2003, Gennadiy Rozental wrote:

>> Boost.Config uses _POSIX_VERSION to determine wether sigaction()
>> is available. The presence of _POSIX_VERSION doesn't indicate
>> wether the POSIX API has actually been enabled.
>>
>> If we want to use Boost.Config to take care of this then
>> Boost.Config also has to check wether POSIX has been enabled.
>> This would be a very tedious task. glibc uses a plethora of
>> flags to enable POSIX, other implementations probably will
>> also add some flags.
>
>It would be very tedious to repeat this check in every place that needs
to
>rely on POSIX API.
>I think the Boost.Config is the very place to make a fix. Could you
submit
>a patch for the compilers you know about?
>Our Boost.Config maintainer will need to varify and admit it in though.

I agree with Gennadiy. The detection code should be concentrated in
Boost.Config rather than repeated in multiple libraries.

--Beman


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