Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-07-11 14:00:15


Author: johnmaddock
Date: 2008-07-11 14:00:15 EDT (Fri, 11 Jul 2008)
New Revision: 47319
URL: http://svn.boost.org/trac/boost/changeset/47319

Log:
Fixes #2097.
Text files modified:
   trunk/boost/regex/v4/cpp_regex_traits.hpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: trunk/boost/regex/v4/cpp_regex_traits.hpp
==============================================================================
--- trunk/boost/regex/v4/cpp_regex_traits.hpp (original)
+++ trunk/boost/regex/v4/cpp_regex_traits.hpp 2008-07-11 14:00:15 EDT (Fri, 11 Jul 2008)
@@ -293,7 +293,9 @@
    //
    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_message(i));
@@ -303,12 +305,14 @@
             }
          }
          this->m_pmessages->close(cat);
+#ifndef BOOST_NO_EXCEPTIONS
       }
       catch(...)
       {
          this->m_pmessages->close(cat);
          throw;
       }
+#endif
    }
    else
    {
@@ -1055,3 +1059,4 @@
 
 #endif
 
+


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk