From 774981bb52bc1a631abb98411984dfd51d18b217 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 29 Apr 2005 15:04:06 +0000 Subject: [PATCH] Must check numeric_limits::is_specialized before using other members! [SVN r28527] --- include/boost/regex/v4/basic_regex_parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/regex/v4/basic_regex_parser.hpp b/include/boost/regex/v4/basic_regex_parser.hpp index 6684dc51..22f5899d 100644 --- a/include/boost/regex/v4/basic_regex_parser.hpp +++ b/include/boost/regex/v4/basic_regex_parser.hpp @@ -1395,7 +1395,7 @@ charT basic_regex_parser::unescape_character() int i = this->m_traits.toi(m_position, m_end, 16); if((m_position == m_end) || (i < 0) - || (i > (std::numeric_limits::max)()) + || ((std::numeric_limits::is_specialized) && (i > (std::numeric_limits::max)())) || (this->m_traits.syntax_type(*m_position) != regex_constants::syntax_close_brace)) { fail(regex_constants::error_badbrace, m_position - m_base);