|
Boost : |
From: Pavol Droba (droba_at_[hidden])
Date: 2003-10-30 06:11:42
On Thu, Oct 30, 2003 at 10:21:48AM -0000, Paul A. Bristow wrote:
> Surely any string compatible stuff should use
>
> std::basic_string <char>::size_type size_type
>
> for std:: consistency at least.
>
> Which answers any questions on the current string algorithm review.
Well, size_type is surely used, but only in context where is makes sence.
AFAIR, this discussion has started for find_nth algorithm. There is no
reson to use size_type to denote an index of the match. It is not
related to any size value.
> (And in general, my experience -I never ignore signed/unsigned mismatch
> warnings - suggests that using unsigned for the never negative is the Right
> Thing To Do. But it is tiresome at first.)
>
I completely agree.
Regards,
Pavol
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk