diff -r 510d5bd079ad boost/regex/v4/cpp_regex_traits.hpp --- a/boost/regex/v4/cpp_regex_traits.hpp Fri Jun 27 15:59:57 2008 -0600 +++ b/boost/regex/v4/cpp_regex_traits.hpp Mon Jun 30 18:22:37 2008 -0600 @@ -304,11 +304,13 @@ } this->m_pmessages->close(cat); } +#ifndef BOOST_NO_EXCEPTIONS catch(...) { this->m_pmessages->close(cat); throw; } +#endif } else {