mirror of
https://github.com/boostorg/functional.git
synced 2025-08-01 21:44:28 +02:00
Hash: Avoid type punning warning.
[SVN r80217]
This commit is contained in:
@@ -98,8 +98,7 @@ namespace boost
|
|||||||
int>::type
|
int>::type
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
boost::uint32_t* ptr = (boost::uint32_t*)&v;
|
return hash_binary((char*) &v, 4);
|
||||||
return (std::size_t) *ptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user