
2 Nov
2004
2 Nov
'04
10:57 a.m.
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.