Merge remote-tracking branch 'origin/develop'

This commit is contained in:
Daniel James
2015-01-24 14:37:21 +00:00
2 changed files with 6 additions and 1 deletions

View File

@@ -174,4 +174,9 @@
* Ongoing work on improving `hash_combine`. This changes the combine function
which was previously defined in the reference documentation.
[h2 Boost 1.58.0]
* Fixed strict aliasing violation
([@https://github.com/boostorg/functional/pull/3 GitHub #3]).
[endsect]

View File

@@ -68,7 +68,7 @@ namespace boost
std::size_t seed = 0;
if (length >= sizeof(std::size_t)) {
seed = *(std::size_t*) ptr;
std::memcpy(&seed, ptr, sizeof(std::size_t));
length -= sizeof(std::size_t);
ptr += sizeof(std::size_t);