Type mismatch warning in multi_array::subarray

8 Feb
2005
8 Feb
'05
9:31 p.m.
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.
7427
Age (days ago)
7427
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Ruzon