|
Boost Users : |
From: Richard Reitmeyer (rreitmey_at_[hidden])
Date: 2004-08-17 12:46:08
Thanks for your help. (And all the effort that went into
the regex library.)
I'm using 1.31.0 (unpatched). After a more careful examination,
my problem was that I was passing the wrong kind of allocator
as a template parameter.
Richard
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of John Maddock
> Sent: Tuesday, August 17, 2004 5:33 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] regex:
> match_results::const_reference is sometimessub_match<Bidi
> Iterator>, sometimes const char?
>
>
> > The regex library is extremely helpful: thanks for all your efforts.
> >
> > I've got a problem with gcc and stlport and boost: when I try
> > to get a submatch on other platforms, I can take my match object, m,
> > and do things like
> >
> > m[n].str(); // works great elsewhere
> >
> > But with gcc / stlport, with BOOST_NO_STD_ALLOCATOR not defined,
> > the const_reference type is defined as Allocator::const_reference
> > (which is `const char'), rather than sub_match<BidiIterator>.
> > So operator[] gives me a char, and life isn't so good.
> >
> > Any hints as to where I went astray?
>
> Works for me (with Boost-1.31.0 + latest patches), what
> version are you
> using?
>
> John.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net