Boost logo

Boost :

From: Mark Ruzon (mark34_at_[hidden])
Date: 2005-02-08 16:31:10


In boost_1_32_0, I often get a type mismatch warning in the MSVC++ 7.1
compiler in the end function of multi_array::sub_array:

iterator end() {
  return iterator(*this->index_bases()+*this->shape(),origin(),
                  this->shape(),this->strides(),this->index_bases());
}

index_bases() appears to return a signed quantity (index*), while shape()
appears to return an unsigned quantity (size_type*). Their sum is unsigned,
but iterator takes a signed type as its first argument.

Does anyone see a problem with casting the result to type index until a fix is
made? I don't like disabling warnings.


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