Patch to fix exception safety in boost::asio::detail::hash_map. Related to https://svn.boost.org/trac/boost/ticket/11823 ---- Steps to recreate the patch: 1) Original boost sources in the directory: packages\3rdParty\boost\\src\original\boost_\... 2) Modified sources in: packages\3rdParty\boost\\src\patched\boost_\... 3) Cygwin console, in folder: packages/3rdParty/boost//src 4) Patch generated as: diff -Nru original patched > boost_asio_hash_map_exception_safety.patch 5) This note added to the patch file diff -Nru original/boost_1_60_0/boost/asio/detail/hash_map.hpp patched/boost_1_60_0/boost/asio/detail/hash_map.hpp --- original/boost_1_60_0/boost/asio/detail/hash_map.hpp 2015-12-13 18:23:11.000000000 -0800 +++ patched/boost_1_60_0/boost/asio/detail/hash_map.hpp 2016-05-09 15:14:59.450066200 -0700 @@ -244,15 +244,15 @@ { if (num_buckets == num_buckets_) return; - num_buckets_ = num_buckets; - BOOST_ASIO_ASSERT(num_buckets_ != 0); + BOOST_ASIO_ASSERT(num_buckets != 0); iterator end_iter = values_.end(); // Update number of buckets and initialise all buckets to empty. - bucket_type* tmp = new bucket_type[num_buckets_]; + bucket_type* tmp = new bucket_type[num_buckets]; delete[] buckets_; buckets_ = tmp; + num_buckets_ = num_buckets; for (std::size_t i = 0; i < num_buckets_; ++i) buckets_[i].first = buckets_[i].last = end_iter;