diff -r 510d5bd079ad boost/pool/pool_alloc.hpp --- a/boost/pool/pool_alloc.hpp Fri Jun 27 15:59:57 2008 -0600 +++ b/boost/pool/pool_alloc.hpp Mon Jun 30 18:22:02 2008 -0600 @@ -14,6 +14,7 @@ // new, std::bad_alloc #include +#include #include // boost::singleton_pool @@ -95,7 +96,7 @@ singleton_pool::ordered_malloc(n) ); if (ret == 0) - throw std::bad_alloc(); + boost::throw_exception(std::bad_alloc()); return ret; } static pointer allocate(const size_type n, const void * const) @@ -182,7 +183,7 @@ singleton_pool::ordered_malloc(n) ); if (ret == 0) - throw std::bad_alloc(); + boost::throw_exception(std::bad_alloc()); return ret; } static pointer allocate(const size_type n, const void * const) @@ -193,7 +194,7 @@ singleton_pool::malloc() ); if (ret == 0) - throw std::bad_alloc(); + boost::throw_exception(std::bad_alloc()); return ret; } static void deallocate(const pointer ptr, const size_type n)