From 1567185ba2b134669262462d23da63a111e7ec4f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 8 Jul 2012 07:54:35 +0000 Subject: [PATCH] Add workaround for old broken compilers that don't support template construct/assign to containers. Fixes #6680. [SVN r79342] --- include/boost/regex/v4/basic_regex_parser.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/regex/v4/basic_regex_parser.hpp b/include/boost/regex/v4/basic_regex_parser.hpp index f77837a9..72dc4eeb 100644 --- a/include/boost/regex/v4/basic_regex_parser.hpp +++ b/include/boost/regex/v4/basic_regex_parser.hpp @@ -191,6 +191,7 @@ void basic_regex_parser::fail(regex_constants::error_type error_c this->m_pdata->m_status = error_code; m_position = m_end; // don't bother parsing anything else +#ifndef BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS // // Augment error message with the regular expression text: // @@ -211,6 +212,7 @@ void basic_regex_parser::fail(regex_constants::error_type error_c } message += "'."; } +#endif #ifndef BOOST_NO_EXCEPTIONS if(0 == (this->flags() & regex_constants::no_except))