| 150 | 
  | 
    int oldSize = size(); | 
| 151 | 
  | 
    bitset_.resize(nbits); | 
| 152 | 
  | 
    if (nbits > oldSize) { | 
| 153 | 
< | 
        std::fill(bitset_.begin()+oldSize, bitset_.begin()+nbits+1, false); | 
| 153 | 
> | 
        std::fill(bitset_.begin()+oldSize, bitset_.end(), false); | 
| 154 | 
  | 
    } | 
| 155 | 
  | 
} | 
| 156 | 
  | 
 | 
| 191 | 
  | 
    return std::equal(bs1.bitset_.begin(), bs1.bitset_.end(), bs2.bitset_.begin()); | 
| 192 | 
  | 
} | 
| 193 | 
  | 
 | 
| 194 | 
< | 
std::istream& operator>> ( std::istream& is, const BitSet& bs) { | 
| 194 | 
> | 
//std::istream& operator>> ( std::istream& is, const BitSet& bs) { | 
| 195 | 
> | 
// | 
| 196 | 
> | 
//    return is; | 
| 197 | 
> | 
//} | 
| 198 | 
  | 
 | 
| 196 | 
– | 
    return is; | 
| 197 | 
– | 
} | 
| 198 | 
– | 
 | 
| 199 | 
  | 
std::ostream& operator<< ( std::ostream& os, const BitSet& bs) { | 
| 200 | 
  | 
    for (int i = 0; i < bs.bitset_.size(); ++i) { | 
| 201 | 
  | 
        std::string val = bs[i] ? "true" : "false"; |