From: Martin Quinson Date: Wed, 24 May 2017 00:13:29 +0000 (+0200) Subject: remove some explicit keywords that I barely understand X-Git-Tag: v3.16~228^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a0846dc62a4cd480eaa8642b8d1bea8b84fddf3b?hp=41277cdd0f070ca921caf3678fbb7bf453a9543f;ds=sidebyside remove some explicit keywords that I barely understand --- diff --git a/include/simgrid/kernel/future.hpp b/include/simgrid/kernel/future.hpp index 581db40333..777a9f48b2 100644 --- a/include/simgrid/kernel/future.hpp +++ b/include/simgrid/kernel/future.hpp @@ -209,7 +209,7 @@ void bindPromise(Promise promise, Future future) { struct PromiseBinder { public: - explicit PromiseBinder(Promise promise) : promise_(std::move(promise)) {} + PromiseBinder(Promise promise) : promise_(std::move(promise)) {} void operator()(Future future) { simgrid::xbt::setPromise(promise_, future); @@ -282,7 +282,7 @@ template class Future { public: Future() = default; - explicit Future(std::shared_ptr> state) : state_(std::move(state)) {} + Future(std::shared_ptr> state) : state_(std::move(state)) {} // Move type: Future(Future&) = delete; @@ -454,8 +454,8 @@ Future unwrapFuture(Future> future) template class Promise { public: - explicit Promise() : state_(std::make_shared>()) {} - explicit Promise(std::shared_ptr> state) : state_(std::move(state)) {} + Promise() : state_(std::make_shared>()) {} + Promise(std::shared_ptr> state) : state_(std::move(state)) {} // Move type Promise(Promise const&) = delete;