mirror of
https://github.com/boostorg/regex.git
synced 2025-07-17 22:32:09 +02:00
Make it sure this compiles when there's no exception handling support.
[SVN r27578]
This commit is contained in:
@ -59,7 +59,9 @@ void cpp_regex_traits_char_layer<char>::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_syntax(i));
|
string_type mss = this->m_pmessages->get(cat, 0, i, get_default_syntax(i));
|
||||||
@ -69,12 +71,14 @@ void cpp_regex_traits_char_layer<char>::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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user