Opened 9 years ago

#8975 new Bugs

Throw exception on allocation failure in cpp_regex_traits::value

Reported by: Martin <martin.raiber@…> Owned by: Eric Niebler
Milestone: To Be Determined Component: xpressive
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.