Boost logo

Boost Users :

From: joaquin_at_[hidden]
Date: 2008-07-14 03:30:22


Igor R escribió:
> I'd like to join this question.
> I've got the same strange behavior when using boost::hash, like this:
>
> std::size_t hash_value(const Command &cmd)
> {
> return boost::hash<std::size_t>()(cmd.id()); // id() returns std::sze_t
> }
>
> And I guess, the problem is not in a possible redefinition of size_t -
> since everywhere in code the std::size_t is fully qualified...
>

This is not really a problem but a misguided warning by MSVC when using
the /Wp64 compiler
option (Detect 64-Bit Portability Issues). For more info please read the
thread starting at:

http://lists.boost.org/boost-users/2007/03/26227.php

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net