[exception] enable_exception_cloning.hpp should include <new>

boost/exception/enable_exception_cloning.hpp uses std::bad_alloc without #include'ing <new>. Because of this, some exception library tests fail to compile on HP-UX. Thanks, Boris

on Mon Mar 10 2008, "Boris Gubenko" <Boris.Gubenko-AT-hp.com> wrote:
boost/exception/enable_exception_cloning.hpp uses std::bad_alloc without #include'ing <new>. Because of this, some exception library tests fail to compile on HP-UX.
Thanks, Boris. Could you open a ticket for that issue at http://svn.boost.org? -- Dave Abrahams Boost Consulting http://boost-consulting.com

on Mon Mar 10 2008, "Boris Gubenko" <Boris.Gubenko-AT-hp.com> wrote:
boost/exception/enable_exception_cloning.hpp uses std::bad_alloc without #include'ing <new>. Because of this, some exception library tests fail to compile on HP-UX.
There is no enable_exception_cloning.hpp in the current trunk code; it was renamed some time ago to enable_current_exception.hpp, whuch doesn't use std::bad_alloc. That said, now there is a header boost/exception_ptr.hpp, which does use std::bad_alloc without an #include <new>, I'll fix this shortly. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode
participants (3)
-
Boris Gubenko
-
David Abrahams
-
Emil Dotchevski