Fixed no exception handling builds

[SVN r20330]
This commit is contained in:
John Maddock
2003-10-10 12:13:23 +00:00
parent 651256800f
commit c23a7a8cfe

View File

@ -103,7 +103,9 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match()
#ifdef BOOST_REGEX_NON_RECURSIVE #ifdef BOOST_REGEX_NON_RECURSIVE
save_state_init init(&m_stack_base, &m_backup_state); save_state_init init(&m_stack_base, &m_backup_state);
used_block_count = BOOST_REGEX_MAX_BLOCKS; used_block_count = BOOST_REGEX_MAX_BLOCKS;
#if !defined(BOOST_NO_EXCEPTIONS)
try{ try{
#endif
#endif #endif
// reset our state machine: // reset our state machine:
@ -119,7 +121,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match()
return false; return false;
return m_result[0].second == last; return m_result[0].second == last;
#ifdef BOOST_REGEX_NON_RECURSIVE #if defined(BOOST_REGEX_NON_RECURSIVE) && !defined(BOOST_NO_EXCEPTIONS)
} }
catch(...) catch(...)
{ {
@ -164,7 +166,9 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::find()
#ifdef BOOST_REGEX_NON_RECURSIVE #ifdef BOOST_REGEX_NON_RECURSIVE
save_state_init init(&m_stack_base, &m_backup_state); save_state_init init(&m_stack_base, &m_backup_state);
used_block_count = BOOST_REGEX_MAX_BLOCKS; used_block_count = BOOST_REGEX_MAX_BLOCKS;
#if !defined(BOOST_NO_EXCEPTIONS)
try{ try{
#endif
#endif #endif
state_count = 0; state_count = 0;
@ -211,7 +215,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::find()
matcher_proc_type proc = s_find_vtable[type]; matcher_proc_type proc = s_find_vtable[type];
return (this->*proc)(); return (this->*proc)();
#ifdef BOOST_REGEX_NON_RECURSIVE #if defined(BOOST_REGEX_NON_RECURSIVE) && !defined(BOOST_NO_EXCEPTIONS)
} }
catch(...) catch(...)
{ {