Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-05-08 15:53:04


Beman Dawes wrote:
> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
> news:012701c553ea$c2707610$6401a8c0_at_pdimov2...
>> Beman Dawes wrote:
>>
>>> 1) Add an other_flag and a matching is_other() function. Change
>>> definition of exists() to status() &
>>> (directory_flag|file_flag|other_flag)

I should also add that, in my opinion, what you call is_file is probably
is_stream. Streams can be read with an ifstream, but they aren't necessarily
stable, seekable or finite. Take /dev/urandom, for example.

A hypothetical OS that allows directories to be opened with an ifstream may
reasonably answer true to both is_stream(p) and is_directory(p). Or maybe
not. :-)


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