From 50b820475307163d4994d35a044f832f2694031a Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 25 Feb 2004 12:36:45 +0000 Subject: [PATCH] Updated iterator defs. [SVN r22387] --- include/boost/regex/v4/regex_iterator.hpp | 8 ++++++++ include/boost/regex/v4/regex_token_iterator.hpp | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/include/boost/regex/v4/regex_iterator.hpp b/include/boost/regex/v4/regex_iterator.hpp index 084e572a..0229246c 100644 --- a/include/boost/regex/v4/regex_iterator.hpp +++ b/include/boost/regex/v4/regex_iterator.hpp @@ -76,6 +76,14 @@ template , class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) > class regex_iterator +#ifndef BOOST_NO_STD_ITERATOR + : public std::iterator< + std::forward_iterator_tag, + match_results, + typename re_detail::regex_iterator_traits::difference_type, + const match_results*, + const match_results& > +#endif { private: typedef regex_iterator_implementation impl; diff --git a/include/boost/regex/v4/regex_token_iterator.hpp b/include/boost/regex/v4/regex_token_iterator.hpp index 82ac8ded..bb3afa11 100644 --- a/include/boost/regex/v4/regex_token_iterator.hpp +++ b/include/boost/regex/v4/regex_token_iterator.hpp @@ -163,6 +163,14 @@ template , class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) > class regex_token_iterator +#ifndef BOOST_NO_STD_ITERATOR + : public std::iterator< + std::forward_iterator_tag, + sub_match, + typename re_detail::regex_iterator_traits::difference_type, + const sub_match*, + const sub_match& > +#endif { private: typedef regex_token_iterator_implementation impl;