Boost logo

Boost :

From: John Maddock (john_maddock_at_[hidden])
Date: 2002-04-26 06:54:41


> What version of CodeWarrior? Using CodeWarrior 7.1 on Macintosh I've
> compiled the entire regular expression library many times without
> problems.

Thanks, I think it was CW6.

>Although this time, when I just tried it I did run a problem
> that I fixed like this:

Thanks for the info, I'm confused though: the current version already uses:

+ std::map<int, std::ptrdiff_t, std::less<int> >::iterator pos =

Or have you got your diff the wrong way round, and did you mean that a
change to:

- std::map<int, int, std::less<int> >::iterator pos =

was required, if so, what's the issue with std::ptrdiff_t?

>
> 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 :
> RegEx::npos;
> case re_detail::RegExData::type_copy:
> {
> - std::map<int, int, std::less<int> >::iterator pos =
> pdata->positions.find(i);
> + std::map<int, std::ptrdiff_t, std::less<int> >::iterator pos =
> pdata->positions.find(i);
> 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
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk