Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-11-02 05:57:14


> this will cause compile warnings in VC7.1 with the "detect 64bit
> issues" flag set:
>
> boost::match_results<string::const_iterator> what;
> for(boost::match_results<string::const_iterator>::size_type i=0;
> i<what.size(); i++)
> results.push_back(string(what[i].first, what[i].second));
>
> warning C4267: 'argument' : conversion from 'size_t' to 'int',
> possible loss of data
>
> it seems the operator takes an int for index instead of size_type.

For historical reasons a negative index is permitted - so for now I'm not
going to change this to a size_type argument - although if there's any other
way to suppress the warning I'll happily use it.

John.


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