[Boost-bugs] [Boost C++ Libraries] #8975: Throw exception on allocation failure in cpp_regex_traits::value

Subject: [Boost-bugs] [Boost C++ Libraries] #8975: Throw exception on allocation failure in cpp_regex_traits::value
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-08 13:08:36


#8975: Throw exception on allocation failure in cpp_regex_traits::value
--------------------------------------+--------------------------
 Reporter: Martin <martin.raiber@…> | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: xpressive
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: |
--------------------------------------+--------------------------
 Sorry, I'm testing the correct handling of allocation failures currently.

 STL streams have the annoying property, that they do not throw exceptions
 on allocation failures (std::bad_alloc). This can be changed by calling
 basic_stringstream::exceptions(std::ios::badbit).
 This is not done in cpp_regex_traits.hpp line 565, causing, in my case, a
 unrelated exception (invalid quantifier).

 See also #8966 for the same thing in lexical_cast.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8975>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC