Boost logo

Ublas :

From: Ian McCulloch (ianmcc_at_[hidden])
Date: 2005-05-03 14:47:27

On Tue, 3 May 2005, Max Weinberg wrote:

> > Not on 32 bit Linux with gcc 3.3.4. I guess this is a warning that only pops
> > up on 64 bit platforms where sizeof(size_t) != sizeof(unsigned int).
> Yes, that it. Now I remember that I have reported this already a half year ago.
> Sorry, I should have noticed that before. Then I wrote: "the type deduction
> generates lots of warnings when compiled on VC7.1 with /Wp64 on. (Which means
> 64bit compatibility check)" The solution would be to include the
> std::difference_type std::size_t etc. along with the other types in
> returntypededuction.h. The std:: types are internally defined as e.g. "__w64
> unsigned". The /Wp64 warning is switched on by default in VC7.1/8.0.

No need to do that, in fact it would be an error. std::size_t,
std::ptrdiff_t etc are simply typedef's for builtin types. VC's warning
system is broken.