--- boost_1_54_0/boost/container/detail/allocator_version_traits.hpp 2013-05-18 20:40:55.000000000 +1000 +++ boost_1_54_0_patched/boost/container/detail/allocator_version_traits.hpp 2013-09-27 00:44:08.000000000 +1000 @@ -141,7 +141,9 @@ else{ received_size = preferred_size; BOOST_TRY{ - ret.first = a.allocate(received_size); + if(preferred_size){ + ret.first = a.allocate(received_size); + } } BOOST_CATCH(...){ if(!(command & nothrow_allocation)){