[SVN r47320]
This commit is contained in:
John Maddock
2008-07-11 18:00:41 +00:00
parent a08e8b5c85
commit b7d906dff5

View File

@ -293,7 +293,9 @@ void cpp_regex_traits_char_layer<charT>::init()
// //
if((int)cat >= 0) if((int)cat >= 0)
{ {
#ifndef BOOST_NO_EXCEPTIONS
try{ try{
#endif
for(regex_constants::syntax_type i = 1; i < regex_constants::syntax_max; ++i) for(regex_constants::syntax_type i = 1; i < regex_constants::syntax_max; ++i)
{ {
string_type mss = this->m_pmessages->get(cat, 0, i, get_default_message(i)); string_type mss = this->m_pmessages->get(cat, 0, i, get_default_message(i));
@ -303,12 +305,14 @@ void cpp_regex_traits_char_layer<charT>::init()
} }
} }
this->m_pmessages->close(cat); this->m_pmessages->close(cat);
#ifndef BOOST_NO_EXCEPTIONS
} }
catch(...) catch(...)
{ {
this->m_pmessages->close(cat); this->m_pmessages->close(cat);
throw; throw;
} }
#endif
} }
else else
{ {
@ -1055,3 +1059,4 @@ static_mutex& cpp_regex_traits<charT>::get_mutex_inst()
#endif #endif