Changed char_type to be the type used by the regex object not the iterator - allows code to compile where the iterator enumerates types that are different to the regex type.

[SVN r20228]
This commit is contained in:
John Maddock
2003-09-30 11:39:41 +00:00
parent 83306608a7
commit 182616ea25

View File

@ -271,7 +271,7 @@ template <class BidiIterator, class Allocator, class traits, class Allocator2>
class perl_matcher
{
public:
typedef typename boost::re_detail::regex_iterator_traits<BidiIterator>::value_type char_type;
typedef typename traits::char_type char_type;
typedef perl_matcher<BidiIterator, Allocator, traits, Allocator2> self_type;
typedef bool (self_type::*matcher_proc_type)(void);
typedef access_t<char_type, traits, Allocator2> access;