Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-05-04 20:11:07

"Thomas Witt" <witt_at_[hidden]> wrote in message

>> There is also a nice simplicity in the current design; the functions
>> always returns a value with one and only one flag set.
> In this case the fact that it is a bitmask type seems to be kind of
> misleading. Isn't the whole point of a bitmask type to be able to have
> multiple flags set at once?

Multiple flags are or'ed together for tests:

  if ( (status(p) & (directory_flag|file_flag)) != 0 ) ...

Isn't the usual way of the standard is to describe that as a "bitmask


Boost list run by bdawes at, gregod at, cpdaniel at, john at