Boost C++ Libraries: Ticket #8975: Throw exception on allocation failure in cpp_regex_traits::value https://svn.boost.org/trac10/ticket/8975 <p> Sorry, I'm testing the correct handling of allocation failures currently. </p> <p> 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). </p> <p> See also <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8966" title="#8966: Bugs: No exception thrown (e.g. std::bad_alloc) on allocation failure in ... (closed: fixed)">#8966</a> for the same thing in lexical_cast. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8975 Trac 1.4.3