Ticket #2102: boost_wave_no_exceptions.diff

File boost_wave_no_exceptions.diff, 1021 bytes (added by anonymous, 14 years ago)
  • boost/wave/cpplexer/cpp_lex_token.hpp

    diff -r 510d5bd079ad boost/wave/cpplexer/cpp_lex_token.hpp
    a b  
    131131       
    132132    void *ret = pool_type::malloc();
    133133    if (0 == ret)
    134         throw std::bad_alloc();
     134        boost::throw_exception(std::bad_alloc());
    135135    return ret;
    136136}
    137137
  • boost/wave/grammars/cpp_expression_grammar.hpp

    diff -r 510d5bd079ad boost/wave/grammars/cpp_expression_grammar.hpp
    a b  
    782782            }
    783783        }
    784784    }
     785#ifndef BOOST_NO_EXCEPTIONS
    785786    catch (boost::wave::preprocess_exception const& e) {
    786787    // expression is illformed
    787788        if (if_block_status) {
     
    792793            return false;
    793794        }
    794795    }
     796#endif
    795797       
    796798    if (!hit.full) {
    797799    // The token list starts with a valid expression, but there remains