diff --git a/example/timer/regex_timer.cpp b/example/timer/regex_timer.cpp index dceb0d5a..f6fd1761 100644 --- a/example/timer/regex_timer.cpp +++ b/example/timer/regex_timer.cpp @@ -215,7 +215,7 @@ int main(int argc, char**argv) // cache load: regex_search(s2, sm, ex); - // measure time interval for reg_expression + // measure time interval for basic_regex do{ iters *= (tim > 0.001) ? (1.1/tim) : 100; t.restart(); @@ -283,7 +283,7 @@ int main(int argc, char**argv) } #endif - // measure time interval for reg_expression using a deque + // measure time interval for basic_regex using a deque iters = 10; tim = 1.1; // cache load: diff --git a/performance/time_localised_boost.cpp b/performance/time_localised_boost.cpp index fb748deb..4e973e2f 100644 --- a/performance/time_localised_boost.cpp +++ b/performance/time_localised_boost.cpp @@ -17,7 +17,7 @@ namespace bl{ double time_match(const std::string& re, const std::string& text, bool icase) { - boost::reg_expression > e(re, (icase ? boost::regex::perl | boost::regex::icase : boost::regex::perl)); + boost::basic_regex > e(re, (icase ? boost::regex::perl | boost::regex::icase : boost::regex::perl)); boost::smatch what; boost::timer tim; int iter = 1; @@ -55,7 +55,7 @@ bool dummy_grep_proc(const boost::smatch&) double time_find_all(const std::string& re, const std::string& text, bool icase) { - boost::reg_expression > e(re, (icase ? boost::regex::perl | boost::regex::icase : boost::regex::perl)); + boost::basic_regex > e(re, (icase ? boost::regex::perl | boost::regex::icase : boost::regex::perl)); boost::smatch what; boost::timer tim; int iter = 1;