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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of John Maddock Sent: Tuesday, August 17, 2004 5:33 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users