Ticket #8882: sequence_stack.patch

File sequence_stack.patch, 922 bytes (added by gromer@…, 9 years ago)

Patch to fix

  • boost/xpressive/detail/utility/sequence_stack.hpp

    ==== original/boost/xpressive/detail/utility/sequence_stack.hpp - patched/boost/xpressive/detail/utility/sequence_stack.hpp ====
    old new  
    1818#include <algorithm>
    1919#include <functional>
    2020
     21#include "boost/detail/no_exceptions_support.hpp"
     22
    2123namespace boost { namespace xpressive { namespace detail
    2224{
    2325
     
    3638    {
    3739        std::size_t i = 0;
    3840        T *p = (T *)::operator new(size * sizeof(T));
    39         try
     41        BOOST_TRY
    4042        {
    4143            for(; i < size; ++i)
    4244                ::new((void *)(p+i)) T(t);
    4345        }
    44         catch(...)
     46        BOOST_CATCH(...)
    4547        {
    4648            deallocate(p, i);
    47             throw;
     49            BOOST_RETHROW;
    4850        }
    4951        return p;
    5052    }