forked from boostorg/regex
Made min/max usage conform to our guidelines.
Changed Boost.test usage to conform to new interface. [SVN r27271]
This commit is contained in:
@ -45,7 +45,7 @@ double time_match(const std::string& re, const std::string& text, bool icase)
|
||||
boost::regex_match(text, what, e);
|
||||
}
|
||||
run = tim.elapsed();
|
||||
result = std::min(run, result);
|
||||
result = (std::min)(run, result);
|
||||
}
|
||||
return result / iter;
|
||||
}
|
||||
@ -86,7 +86,7 @@ double time_find_all(const std::string& re, const std::string& text, bool icase)
|
||||
boost::regex_grep(&dummy_grep_proc, text, e);
|
||||
}
|
||||
run = tim.elapsed();
|
||||
result = std::min(run, result);
|
||||
result = (std::min)(run, result);
|
||||
}
|
||||
return result / iter;
|
||||
}
|
||||
|
Reference in New Issue
Block a user