template<typename T>
string int_to_str(T v, const Fmt &f)
{
- unsigned size=max(f.get_width(), max(f.get_precision(), sizeof(T)*8+3));
+ unsigned size=max(f.get_width(), max<unsigned>(f.get_precision(), sizeof(T)*8+3));
char *buf=new char[size];
string result(int_to_str(v, f, buf+size), buf+size);
delete[] buf;
{
vector<string> result;
- unsigned start=0;
+ string::size_type start=0;
if(!allow_empty)
start=str.find_first_not_of(sep);
while(start<str.size())
{
- unsigned end=str.find_first_of(sep, start);
+ string::size_type end=str.find_first_of(sep, start);
result.push_back(str.substr(start, end-start));
if(end==string::npos)