Add free-function retire
[folly.git] / folly / experimental / FutureDAG.h
index 3f08fff04d11b645695c8ca19c9d2dad9b465479..48d8dd2dec7712f2becc387ce43c5daf7265af90 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -210,19 +210,19 @@ class FutureDAGFunctor {
   std::vector<T> dep_states;
   T result() {
     return state;
-  };
+  }
   // execReset() runs DAG & clears all nodes except for source
   void execReset() {
     this->dag->go().get();
     this->dag->reset();
-  };
+  }
   void exec() {
     this->dag->go().get();
-  };
-  virtual void operator()(){};
+  }
+  virtual void operator()(){}
   explicit FutureDAGFunctor(T init_val) : state(init_val) {}
   FutureDAGFunctor() : state() {}
-  virtual ~FutureDAGFunctor(){};
+  virtual ~FutureDAGFunctor(){}
 };
 
-} // folly
+} // namespace folly