Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-05-06 07:12:05


"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:00b901c55092$d30fc300$6401a8c0_at_pdimov2...
> Beman Dawes wrote:
>> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
>> news:000e01c54fdb$be752eb0$6401a8c0_at_pdimov2...
>>> I also don't like the fact that the error codes aren't the standard
>>> errno E* constants, but we already had this debate once. :-) (As
>>> with threading, it is my opinion that Posix should be acknowledged.)
>>
>> The intent _is_ to supply the actual system error code (errno for
>> POSIX). There is another function available to convert to a portable
>> code if desired.
>
> My point was that errno should be the portable error code. This will save
> you one mapping.

On a POSIX system that would work well. But what happens on a non-POSIX
system? The E* macros won't be defined in <cerrno>. How will the user get
access to them? Are you suggesting they be defined in one of the filesystem
headers? I don't see how that would work.

--Beman


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