This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -Wconversion versus libstdc++


Paolo Carlini wrote:

So, yes, you can add the casts as a temporary work-around.

By the way, probably now I see why you consider the two issues related and (some) casts temporary: in the case of vector, for example (not in the case of deque) we are currently using in many places size_type, whereas, after the max_size change, we could directly use difference_type and avoid the casts altogether. Of course, the specific warning noticed by Gerald, from _M_deallocate, when we call allocator::deallocate, would still require a cast.

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]