14 Jul
2008
14 Jul
'08
7:30 a.m.
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::hashstd::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