From ca144bb2b3bb8dc22acc248c44a0e613857c6e15 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 8 Mar 2005 17:28:45 +0000 Subject: [PATCH] Make it sure this compiles when there's no exception handling support. [SVN r27578] --- src/cpp_regex_traits.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpp_regex_traits.cpp b/src/cpp_regex_traits.cpp index 925a2d1f..c4efc92f 100644 --- a/src/cpp_regex_traits.cpp +++ b/src/cpp_regex_traits.cpp @@ -59,7 +59,9 @@ void cpp_regex_traits_char_layer::init() // if((int)cat >= 0) { +#ifndef BOOST_NO_EXCEPTIONS try{ +#endif 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)); @@ -69,12 +71,14 @@ void cpp_regex_traits_char_layer::init() } } this->m_pmessages->close(cat); +#ifndef BOOST_NO_EXCEPTIONS } catch(...) { this->m_pmessages->close(cat); throw; } +#endif } else {