Revert "Using emplace_back to avoid temporary"
[folly.git] / folly / io / async / test / HHWheelTimerTest.cpp
index 6cabc028174dd9b2f81cce3b6796458e5b81c77a..e2b5c096291601200d97dbc962ec9627f66e98b5 100644 (file)
@@ -37,14 +37,14 @@ class TestTimeout : public HHWheelTimer::Callback {
   }
 
   void timeoutExpired() noexcept override {
-    timestamps.emplace_back();
+    timestamps.push_back(TimePoint());
     if (fn) {
       fn();
     }
   }
 
   void callbackCanceled() noexcept override {
-    canceledTimestamps.emplace_back();
+    canceledTimestamps.push_back(TimePoint());
     if (fn) {
       fn();
     }