Made min/max usage conform to our guidelines.

Changed Boost.test usage to conform to new interface.


[SVN r27271]
This commit is contained in:
John Maddock
2005-02-09 12:33:18 +00:00
parent 1df0b9cacd
commit eff6f06792
7 changed files with 16 additions and 28 deletions

View File

@ -50,7 +50,7 @@ double time_match(const std::string& re, const std::string& text, bool icase)
regexec(&e, text.c_str(), e.re_nsub, what, 0);
}
run = tim.elapsed();
result = std::min(run, result);
result = (std::min)(run, result);
}
regfree(&e);
return result / iter;
@ -116,7 +116,7 @@ double time_find_all(const std::string& re, const std::string& text, bool icase)
}
}
run = tim.elapsed();
result = std::min(run, result);
result = (std::min)(run, result);
}
return result / iter;
}