diff --git a/include/boost/regex/v5/regex_format.hpp b/include/boost/regex/v5/regex_format.hpp index c13d4b26..fb95c00d 100644 --- a/include/boost/regex/v5/regex_format.hpp +++ b/include/boost/regex/v5/regex_format.hpp @@ -204,7 +204,7 @@ void basic_regex_formatter::format if (recursion_count > BOOST_REGEX_MAX_RECURSION_DEPTH) { // We need to protect ourselves from bad format strings used as DOS attacks: - BOOST_THROW_EXCEPTION(std::runtime_error("Excessive recursion in format string, this looks like a deliberately malformed expression.")); + throw std::runtime_error("Excessive recursion in format string, this looks like a deliberately malformed expression."); } // over and over: while(m_position != m_end)