Boost logo

Boost :

From: John Maddock (john_maddock_at_[hidden])
Date: 2002-05-06 05:27:43

> I have boost boost_1_27_0. I am using aCC version 3.30 with STLport
> version 4.5.3. When I compile the simple test problem below:
> #include <boost/regex.hpp>
> #include <string>
> int main()
> {
> boost::regex re("[ \t]+startSub[ \t]+");
> boost::match_results<std::string::iterator> matchInfo;
> std::string str("// reuse-pragma startSub ");
> return boost::regex_search(str.begin(), str.end(), matchInfo, re) ? 0
: 1;
> }
> I get the following error:
> Error 619: "../include/boost/regex/detail/regex_match.hpp", line 1765 #
The definition of template
alloc> > contains typename qualification '_Iterator::iterator_category', yet
> generation of specialization struct
alloc> > implies that '_Iterator' is 'class
allocator_adapter<char,boost::detail::simple_alloc>', which does not contain
a type named
> 'iterator_category'.
> return

That looks pretty weird to me, I can assure you that the code does not try
and instantiate iterator_traits with an allocator as argument as the error
message suggests, what the problem is though I have no idea. You may be
forced to try commenting out sections of code until you can get to the
bottom of the problem.

John Maddock

Boost list run by bdawes at, gregod at, cpdaniel at, john at