Ticket #7750: indirect_streambuf.hpp.patch

File indirect_streambuf.hpp.patch, 896 bytes (added by Oleg <Oleg.Dolgov@…>, 10 years ago)
  • indirect_streambuf.hpp

     
    1717#include <cassert>
    1818#include <exception>
    1919#include <typeinfo>
     20#include <cxxabi-forced.h>
    2021#include <boost/config.hpp>                      // Member template friends.
    2122#include <boost/detail/workaround.hpp>
    2223#include <boost/iostreams/constants.hpp>
     
    314315        sync_impl();
    315316        obj().flush(next_);
    316317        return 0;
     318    } catch (__cxxabiv1::__forced_unwind&) {
     319        __throw_exception_again;
    317320    } catch (...) { return -1; }
    318321}
    319322
     
    323326    try { // sync() is no-throw.
    324327        sync_impl();
    325328        return obj().flush(next_);
     329    } catch (__cxxabiv1::__forced_unwind&) {
     330        __throw_exception_again;
    326331    } catch (...) { return false; }
    327332}
    328333