Commit 180ca3a1 by Geoff Berry Committed by Jeff Law

bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro on _Nw since _Nw is…

bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro on _Nw since _Nw is already the number of words...


	* stl/bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro
	on _Nw since _Nw is already the number of words in the bitset.

From-SVN: r35885
parent 72972a41
2000-08-22 Geoff Berry <geoffb@bops.com>
* bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro
on _Nw since _Nw is already the number of words in the bitset.
2000-07-10 Martin v. Lwis (loewis@informatik.hu-berlin.de)
* stl_function.h (bind1st, bind2nd): Rename __opr to __oper,
......
......@@ -144,7 +144,7 @@ struct _Base_bitset {
}
bool _M_is_any() const {
for ( size_t __i = 0; __i < __BITSET_WORDS(_Nw,_WordT); __i++ ) {
for ( size_t __i = 0; __i < _Nw; __i++ ) {
if ( _M_w[__i] != static_cast<_WordT>(0) )
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment