remove std_min and std_max, update minmax coding guidelines

[SVN r23162]
This commit is contained in:
Eric Niebler
2004-06-23 04:49:48 +00:00
parent d310bc9835
commit 8d994b14b2
7 changed files with 13 additions and 20 deletions

View File

@ -11,7 +11,6 @@
#include <cassert>
#include <cfloat>
#include <boost/minmax.hpp>
#include "regex_comparison.hpp"
#ifdef BOOST_HAS_PCRE
#include "pcre.h"
@ -70,7 +69,7 @@ double time_match(const std::string& re, const std::string& text, bool icase)
erroffset = pcre_exec(ppcre, pe, text.c_str(), text.size(), 0, 0, what, sizeof(what)/sizeof(int));
}
run = tim.elapsed();
result = std_min(run, result);
result = (std::min)(run, result);
}
free(ppcre);
free(pe);
@ -153,7 +152,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;
}