
2 Jun
2005
2 Jun
'05
4:52 p.m.
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