Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove some explicit keywords that I barely understand
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 24 May 2017 00:13:29 +0000 (02:13 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 24 May 2017 00:13:29 +0000 (02:13 +0200)
include/simgrid/kernel/future.hpp

index 581db40..777a9f4 100644 (file)
@@ -209,7 +209,7 @@ void bindPromise(Promise<T> promise, Future<T> future)
 {
   struct PromiseBinder {
   public:
-    explicit PromiseBinder(Promise<T> promise) : promise_(std::move(promise)) {}
+    PromiseBinder(Promise<T> promise) : promise_(std::move(promise)) {}
     void operator()(Future<T> future)
     {
       simgrid::xbt::setPromise(promise_, future);
@@ -282,7 +282,7 @@ template<class T>
 class Future {
 public:
   Future() = default;
-  explicit Future(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
+  Future(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
 
   // Move type:
   Future(Future&) = delete;
@@ -454,8 +454,8 @@ Future<T> unwrapFuture(Future<Future<T>> future)
 template<class T>
 class Promise {
 public:
-  explicit Promise() : state_(std::make_shared<FutureState<T>>()) {}
-  explicit Promise(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
+  Promise() : state_(std::make_shared<FutureState<T>>()) {}
+  Promise(std::shared_ptr<FutureState<T>> state) : state_(std::move(state)) {}
 
   // Move type
   Promise(Promise const&) = delete;