Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2002-04-26 00:28:53

On Thursday, April 25, 2002, at 04:51 AM, John Maddock wrote:

> Is anyone using the regex lib with CW on the Mac, the following has
> landed
> on my desk, but not being a CW user I haven't been able to solve the
> compiler problems, any ideas anyone?

What version of CodeWarrior? Using CodeWarrior 7.1 on Macintosh I've
compiled the entire regular expression library many times without
problems. Although this time, when I just tried it I did run a problem
that I fixed like this:

Index: libs/regex/src/cregex.cpp
RCS file: /cvsroot/boost/boost/libs/regex/src/cregex.cpp,v
retrieving revision 1.20
diff -p -u -r1.20 cregex.cpp
--- libs/regex/src/cregex.cpp 24 Apr 2002 10:50:23 -0000 1.20
+++ libs/regex/src/cregex.cpp 26 Apr 2002 05:20:03 -0000
@@ -476,7 +476,7 @@ std::size_t RegEx::Position(int i)const
        return pdata->fm[i].matched ? pdata->fm[i].first - pdata->fbase :
     case re_detail::RegExData::type_copy:
- std::map<int, int, std::less<int> >::iterator pos =
+ std::map<int, std::ptrdiff_t, std::less<int> >::iterator pos =
        if(pos == pdata->positions.end())
           return RegEx::npos;
        return (*pos).second;

I have no idea what "couldn't use boost 1.27 because there wasn't any
configuration for CW" means. There definitely is a configuration for
CodeWarrior on Macintosh in 1.27.0.

And CodeWarrior does include <dirent.h>.

     -- Darin

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