From c642977acd4b19d17161857894e5474659176918 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 26 Nov 2003 11:44:53 +0000 Subject: [PATCH] Patches for vc7+stlport [SVN r20951] --- include/boost/regex/v4/match_results.hpp | 2 +- include/boost/regex/v4/perl_matcher_non_recursive.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/regex/v4/match_results.hpp b/include/boost/regex/v4/match_results.hpp index 8e82c1d3..ef90f532 100644 --- a/include/boost/regex/v4/match_results.hpp +++ b/include/boost/regex/v4/match_results.hpp @@ -38,7 +38,7 @@ private: #endif public: typedef sub_match value_type; -#ifndef BOOST_NO_STD_ALLOCATOR +#if !defined(BOOST_NO_STD_ALLOCATOR) && !(defined(BOOST_MSVC) && defined(_STLPORT_VERSION)) typedef typename Allocator::const_reference const_reference; #else typedef const value_type& const_reference; diff --git a/include/boost/regex/v4/perl_matcher_non_recursive.hpp b/include/boost/regex/v4/perl_matcher_non_recursive.hpp index c07e4e25..97fd7949 100644 --- a/include/boost/regex/v4/perl_matcher_non_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_non_recursive.hpp @@ -519,7 +519,7 @@ bool perl_matcher::match_dot_repeat return match_dot_repeat_slow(); const re_repeat* rep = static_cast(pstate); - unsigned count = std::min(static_cast(re_detail::distance(position, last)), (rep->greedy ? rep->max : rep->min)); + unsigned count = std::min(static_cast(re_detail::distance(position, last)), static_cast(rep->greedy ? rep->max : rep->min)); if(rep->min > count) return false; // not enough text left to match std::advance(position, count);