Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-06-02 11:52:59


Victor A. Wagner Jr. wrote:

> I argued
> (unsuccessfully) that when the boost::dynamic_bitset<> was proposed
> that the _least_ we could do would be to fix the mis-characterization of
> operators <= and >= with regards to sets (for those who haven't
> studied sets, {b,c,d} <= {a,b,c,d} but that's not how it will evaluate
> with either std::set or boost::dynamic_bitset).

Well, it's true that in boolean algebra, <= can be interpretted to mean
inclusion. But then, + is also sometimes used to mean OR. I think using the
operators in this unconventional (as far as C++ is concerned) would just lead to
confusion.

Jonathan


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