Boost logo

Boost :

From: Beman Dawes (beman_at_[hidden])
Date: 2000-08-21 12:06:20

Jens Maurer wrote:

> - regbase::flag_type is a bitmask type, but it does not define
>the appropriate operators | & etc. regbase::flags() returns the
>wrong type. For example, this code fails:
> using boost::regbase;
> regbase::flag_type f = regbase::use_except |
>Look at iostream's flags how to do it correctly.

It is written up in the standard's library front matter. See
Bitmask types [lib.bitmask.types].

It might be nice for boost/operators.hpp to support this idiom, but I don't
see how to do that in a way that provides the non-member functions when
desired, but only if explicitly requested.


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