logging: add a LogHandler::getConfig() method
[folly.git] / folly / Benchmark.cpp
index 83d162a14f39f691ccb2bbee49503c4b727d6c32..2e9a7ef48cae09f63c3ac0735c316f1c64fc1bcf 100644 (file)
 #include <iostream>
 #include <limits>
 #include <map>
+#include <memory>
 #include <utility>
 #include <vector>
 
 #include <boost/regex.hpp>
 
-#include <folly/Foreach.h>
 #include <folly/MapUtil.h>
 #include <folly/String.h>
+#include <folly/container/Foreach.h>
 #include <folly/json.h>
 
 using namespace std;
@@ -451,7 +452,7 @@ void runBenchmarks() {
 
   std::unique_ptr<boost::regex> bmRegex;
   if (!FLAGS_bm_regex.empty()) {
-    bmRegex.reset(new boost::regex(FLAGS_bm_regex));
+    bmRegex = std::make_unique<boost::regex>(FLAGS_bm_regex);
   }
 
   // PLEASE KEEP QUIET. MEASUREMENTS IN PROGRESS.